You will first need the specific ".mp3" or ".wav" file of the "Pu" sound.
For iOS, the sound file must be included in the main app bundle. Add sonmez_pu.wav to your Xcode project. SГ¶nmez Reis (Pu) Bildirim Sesi
const playPuSound = () => { const audio = new Audio('https://your-server.com'); audio.play().catch(error => console.log("User interaction required first")); }; Use code with caution. Copied to clipboard 5. UI/UX "Fan Mode" Toggle You will first need the specific "
let content = UNMutableNotificationContent() content.title = "New Message" content.body = "Sönmez Reis is calling!" content.sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: "sonmez_pu.wav")) Use code with caution. Copied to clipboard 4. Implementation for Web (Browser) const playPuSound = () => { const audio
: Add a button to play the sound immediately so the user can test the volume. camfrog sönmez - Ekşi Sözlük
// 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
When triggering a local or push notification, set the sound property: