File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -147,13 +147,13 @@ - (id)init
147
147
if (@available (iOS 12.0 , *)) {
148
148
entity.types = JPAuthorizationOptionAlert|JPAuthorizationOptionBadge|JPAuthorizationOptionSound|JPAuthorizationOptionProvidesAppNotificationSettings;
149
149
}
150
- [JPUSHService registerForRemoteNotificationConfig: entity delegate: self .bridge. delegate];
150
+ [JPUSHService registerForRemoteNotificationConfig: entity delegate: [[UIApplication sharedApplication ] delegate ] ];
151
151
[launchOptions objectForKey: UIApplicationLaunchOptionsRemoteNotificationKey];
152
152
// 自定义消息
153
153
NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter ];
154
- [defaultCenter addObserver: self .bridge. delegate selector: @selector (networkDidReceiveMessage: ) name: kJPFNetworkDidReceiveMessageNotification object: nil ];
154
+ [defaultCenter addObserver: [[UIApplication sharedApplication ] delegate ] selector: @selector (networkDidReceiveMessage: ) name: kJPFNetworkDidReceiveMessageNotification object: nil ];
155
155
// 地理围栏
156
- [JPUSHService registerLbsGeofenceDelegate: self .bridge. delegate withLaunchOptions: launchOptions];
156
+ [JPUSHService registerLbsGeofenceDelegate: [[UIApplication sharedApplication ] delegate ] withLaunchOptions: launchOptions];
157
157
// 应用内消息
158
158
[JPUSHService setInAppMessageDelegate: self ];
159
159
});
You can’t perform that action at this time.
0 commit comments