Sг¶nmez Reis (pu): Bildirim Sesi

: "Replace standard pings with the legendary 'Pu' sound effect."

// Define the sound URI Uri soundUri = Uri.parse("android.resource://" + getPackageName() + "/" + R.raw.sonmez_pu); // Create the Channel if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { NotificationChannel channel = new NotificationChannel( "SONMEZ_REIS_CHANNEL", "Sönmez Reis Notifications", NotificationManager.IMPORTANCE_HIGH ); // Set the "Pu" sound AudioAttributes audioAttributes = new AudioAttributes.Builder() .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION) .setUsage(AudioAttributes.USAGE_NOTIFICATION) .build(); channel.setSound(soundUri, audioAttributes); NotificationManager manager = getSystemService(NotificationManager.class); manager.createNotificationChannel(channel); } Use code with caution. Copied to clipboard 3. Implementation for iOS SГ¶nmez Reis (Pu) Bildirim Sesi

In Android, you define the notification sound when creating a NotificationChannel . : "Replace standard pings with the legendary 'Pu'

Discover more from AndroidOS.in

Subscribe now to keep reading and get access to the full archive.

Continue reading