Linked Questions

Popular Questions

Using Nativescript I want to be able to decrement the icon badge number when specific actions are done in the app.

I've started with this code (example):

if (app.ios) {
  app.getNativeApplication().applicationIconBadgeNumber = 5;

I've read that for iOS 10+ I need to get an authorization from the UNUserNotificationCenter. I tried using an app delegate when the app starts to ask for the authorization and it doesn't seem like I can have access to the authorization class from Nativescript.

I tried looking for plugins and can't seem to find any ...

If anyone knows how I could access the Authorization api or even deal with icon badge update from NativeScript it would be appreciated.

Related Questions