Skip to content

Commit b87564d

Browse files
committed
update docs
1 parent 836366a commit b87564d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

example/documents/APIs.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
- [clearAllNotifications](#clearallnotifications)
1616
- [clearNotificationById](#clearnotificationbyId)
1717
- [iOS Only API](#ios-only-api)
18+
- [setupPush](#setuppush)
1819
- [setBadge](#setbadge)
1920
- [getBadge](#getbadge)
2021
- [setLocalNotification](#setlocalnotification)
@@ -216,6 +217,16 @@ JPushModule.clearNotificationById(id);
216217

217218
All apis can find in jpush-react-native/index.js.
218219

220+
#### setupPush
221+
222+
register remote notification from system(will show request remote notification permission).
223+
224+
```objective-c
225+
// AppDelegate.m
226+
JPUSHRegisterEntity * entity = [[JPUSHRegisterEntity alloc] init];
227+
entity.types = UNAuthorizationOptionAlert|UNAuthorizationOptionBadge|UNAuthorizationOptionSound;
228+
[JPUSHService registerForRemoteNotificationConfig:entity delegate:self];
229+
```
219230
#### setBadge
220231
221232
set application's badge.

0 commit comments

Comments
 (0)