File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change 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
217218All 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
221232set application's badge.
You can’t perform that action at this time.
0 commit comments