I tried this code its working fine to load the sound file to ringtones directory.I can manually select the sound from popup ..but its fail to set as default ringtone programmatically.plz help me to set the sound as default ringtone programmatically
asked Jan 13, 2016 at 10:36
1 Remove this code and put these lines code before return true and its work
answered Jan 14, 2016 at 17:36
Use this one. This will work. place above code on MyFirebaseMessagingService inside this onMessageReceived answered Oct 24, 2019 at 10:48
PeterPeter 5275 silver badges15 bronze badges
|