Open javacado opened 9 years ago
Greetings @javacado!
I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.
Thank you for allowing me to assist you.
This should be a doc update.
I was having difficulty getting this plugin to work too, and this fixed it for me.
This fix works for me too on android.
badge.promptForPermission ()
does not call badge.registerPermission()
as the docs state it should.
+1
promptForPermission: function () { return cordova.plugins.notification.badge.promptForPermission(); }, ... changed to
promptForPermission: function () { return cordova.plugins.notification.badge.registerPermission(); },
...... Works on few Android devices... Any permanent solution?
Thank you all... this saved me after one week of researchs
+1
Seems to be requestPermission now :)
Hello. I am not entirely sure if this is accurate since I made a few edits trying to get the plugin to work correctly, but just in case:
I couldn't get cordovaBadge to work until I changed this line in ng-cordova.js
... changed to