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
<Buttontitle={'Request permissions with app notification settings'}onPress={()=>this.requestPermissionsIos(['ProvidesAppNotificationSettings'])}testID={'requestPermissionsWithAppSettings'}/>
167
-
<Buttontitle={'Request permissions with provisional'}onPress={()=>this.requestPermissionsIos(['Provisional'])}testID={'requestPermissionsWithAppSettings'}/>
168
-
<Buttontitle={'Request permissions with app notification settings and provisional'}onPress={()=>this.requestPermissionsIos(['ProvidesAppNotificationSettings','Provisional'])}testID={'requestPermissionsWithAppSettings'}/>
174
+
<Buttontitle={'Request permissions with app notification settings'}onPress={()=>this.requestPermissionsIos(['providesAppNotificationSettings'])}testID={'requestPermissionsWithAppSettings'}/>
175
+
<Buttontitle={'Request permissions with provisional'}onPress={()=>this.requestPermissionsIos(['provisional'])}testID={'requestPermissionsWithAppSettings'}/>
176
+
<Buttontitle={'Request permissions with app notification settings and provisional'}onPress={()=>this.requestPermissionsIos(['providesAppNotificationSettings','provisional'])}testID={'requestPermissionsWithAppSettings'}/>
Copy file name to clipboardexpand all lines: website/docs/api/general-api.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,8 @@ title: General Commands
4
4
sidebar_label: General
5
5
---
6
6
7
-
## registerRemoteNotifications()
8
-
Requests remote notification permissions, prompting the user's dialog box on iOS and request a token on Android.
7
+
## registerRemoteNotifications(options?)
8
+
Requests remote notification permissions, prompting the user's dialog box on iOS and request a token on Android. See iOS specific [`registerRemoteNotifications`](ios-api.md) for definition of `options`.
9
9
If the user accept the remote notifications permissions, `registerRemoteNotificationsRegistered` event will get called with the device token.
Requests notification permissions from iOS, prompting the user's dialog box if needed.
9
9
10
-
Available options:
11
-
-**`ProvidesAppNotificationSettings`** - An option indicating the iOS notification settings to display a button for in-app notification settings and to be [informed in the app on this event](ios-events.md#appNotificationSettingsLinked).
12
-
-**`Provisional`** - Use provisional authorization to send notifications on a trial basis. Users can then evaluate the notifications and decide whether to authorize them.
10
+
Notification permission options:
11
+
-**`providesAppNotificationSettings`** - An option indicating the iOS notification settings to display a button for in-app notification settings and to be [informed in the app on this event](ios-events.md#appNotificationSettingsLinked).
12
+
-**`provisional`** - Use provisional authorization to send notifications on a trial basis. Users can then evaluate the notifications and decide whether to authorize them.
13
+
-**`carPlay`** - The ability to display notifications in a CarPlay environment.
14
+
-**`criticalAlert`** - Requests notification permissions from iOS, prompting the user's dialog box. Options may request
15
+
`criticalAlert` but you must first [Request a Critical Alert Notifications Entitlement](https://developer.apple.com/contact/request/notifications-critical-alerts-entitlement/).
0 commit comments