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
Copy file name to clipboardExpand all lines: versions/unversioned/sdk/notifications.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,3 +128,21 @@ Returns a promise that resolves to the number that is displayed in a badge on th
128
128
129
129
Sets the number displayed in the app icon's badge to the given number. Setting the number to zero will both clear the badge and the list of notifications in the device's notification center on iOS. On Android this method does nothing.
Note: Most people do not need to use this. It is easier to use `getExpoPushTokenAsync` unless you have a specific reason to need the actual device tokens. We also don't guarantee that the iOS and Android clients will continue expecting the same push notification payload format.
136
+
137
+
Returns a native APNS or GCM token that can be used with another push notification service.
138
+
139
+
#### Arguments
140
+
141
+
-**config (_object_)** -- An object with the following fields:
142
+
-**gcmSenderId (_string_)** -- GCM sender ID.
143
+
144
+
#### Returns
145
+
146
+
A Promise that resolves to an object with the following fields:
147
+
-**type (_string_)** -- Either "apns" or "gcm".
148
+
-**data (_string_)** -- The push token as a string.
Copy file name to clipboardExpand all lines: versions/v23.0.0/sdk/notifications.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,3 +128,21 @@ Returns a promise that resolves to the number that is displayed in a badge on th
128
128
129
129
Sets the number displayed in the app icon's badge to the given number. Setting the number to zero will both clear the badge and the list of notifications in the device's notification center on iOS. On Android this method does nothing.
Note: Most people do not need to use this. It is easier to use `getExpoPushTokenAsync` unless you have a specific reason to need the actual device tokens. We also don't guarantee that the iOS and Android clients will continue expecting the same push notification payload format.
136
+
137
+
Returns a native APNS or GCM token that can be used with another push notification service.
138
+
139
+
#### Arguments
140
+
141
+
-**config (_object_)** -- An object with the following fields:
142
+
-**gcmSenderId (_string_)** -- GCM sender ID.
143
+
144
+
#### Returns
145
+
146
+
A Promise that resolves to an object with the following fields:
147
+
-**type (_string_)** -- Either "apns" or "gcm".
148
+
-**data (_string_)** -- The push token as a string.
0 commit comments