For iOS, the sound file must be included in the main app bundle. Add sonmez_pu.wav to your Xcode project.
// 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
You will first need the specific ".mp3" or ".wav" file of the "Pu" sound.