I would like to give the user the ability to change the notification sound through the use of a RingtonePreference. Currently I am using the NotificationFactory to set the sound like so:
DefaultNotificationFactory factory = (DefaultNotificationFactory)
UAirship.shared().getPushManager().getNotificationFactory();
factory.setSound(Uri.parse(path));
But this method only seems to set the ringtone if the app is open, as soon as the app is closed the notification sound reverts to the device default.
I am currently running the latest version, 7.0.3, but I had been running 6.3.1 with the same issue.
Comments
1 comment