Possibility of programmatically using user's current device tone as a Notification sound.

Is it possible to pick the user's current device tone/sound as the Push Notification sound for my app programmatically. So that s/he does not miss out any notification just because of unsustainable sound.

I have gone through the UNNotificationSound Class, it provides the option to opt either the default or the custom sound. But, my concern is to auto pick the sound which user is using on his/her mobile.

Thanks in advance!

Replies

AFAIK, it is not possible for an app to know which is the default ring tone, for privacy reason.

Found a few posts about it:

But there may be a trick here, to use it without your app knowing which it is: https://stackoverflow.com/questions/12577811/how-do-i-play-the-default-phone-ringtone-programmatically

Add a Comment