You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -47,8 +41,6 @@ The permissions API for iOS provides much more fine-grain control over permissio
47
41
48
42
On Android, you do not need to request user permission. This method can still be called on Android devices; however, and will always resolve successfully.
49
43
50
-
51
-
52
44
### Foreground state messages
53
45
54
46
To listen to messages in the foreground, call the onMessage method inside of your application code. Code executed via this handler is able to interact with your application (e.g. updating the state or UI).
@@ -59,11 +51,9 @@ For example, the Alert API could be used to display a new Alert each time a mess
alert('A new Push message arrived!', JSON.stringify(remoteMessage));
56
+
});
67
57
```
68
58
69
59
# Always show notifications when the application is in foreground
@@ -88,40 +78,37 @@ The examples below use a NativeScript ApplicationSettings to store and manage th
88
78
Once your application has started, you can call the getToken method on the Cloud Messaging module to get the unique device token (if using a different push notification provider, such as Amazon SNS, you will need to call getAPNSToken on iOS):
0 commit comments