Closed pragatiy closed 6 years ago
@pragatiy There are three kinds of ringtones for Android: 'notification', 'alarm', 'ringtone', default 'notification'. For IOS, check the list here: https://github.com/TUNER88/iOSSystemSoundsLibrary
Thanks @TongZhangzt . now i got the list of notification ringtone in Android. is it possible to fetch the ringtones by plugin ?
@pragatiy I didn't try to fetch the ringtones, this plugin can only play and stop play the given ringtone. But if you have got the list of notification ringtone (URI list), I guess you could use cordova-plugin-file plugin to do that.
In ios its showing some additional ringtones which are not matching with the device notification ringtone . how to can get only those notification are there in the device.
@pragatiy You can build some filter function after you got the list
have same problem here, it does not show the ringtons
@merjana Android or IOS? For Android, you need to specify 'notification', 'alarm', 'ringtone'.
where to specify exactly ? i tried this.ringtones.getRingtone("alarm"); but it didn't work
@merjana at the third parameter of the function:
cordova.plugins.NativeRingtones.getRingtone(function(success) { ringtones = success; }, function(err) { alert(err); }, "alarm");
Is there any suggestion to find it out ?