File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1515@property (assign ) BOOL tokenChangedListener;
1616@property (assign ) BOOL instanceIdChangedListener;
1717@property (assign ) BOOL messageListener;
18- + (void )registerForNotifiations ;
18+ - (void )registerForNotifications ;
1919+ (void )notificationReceived : (NSDictionary *)data ;
2020+ (void )setLaunchData : (NSDictionary *)launchOptions ;
2121@end
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ - (instancetype)initWithObjectId:(NSString *)objectId properties:(NSDictionary *
4747 if (self) {
4848 messagingDelegate.instance = self;
4949 [self registerSelector: @selector (resetInstanceId ) forCall: @" resetInstanceId" ];
50+ [self registerSelector: @selector (registerForNotifications ) forCall: @" requestPermissions" ];
5051 }
5152 return self;
5253}
@@ -89,7 +90,7 @@ - (UIView *)view {
8990
9091+ (void )setup {
9192 [ESFirebaseHelper setup ];
92- [ESFBMessaging registerForNotifiations ];
93+ messagingDelegate = [ESFBMessagingDelegate new ];
9394}
9495
9596- (NSString *)instanceId {
@@ -100,8 +101,7 @@ - (NSString *)token {
100101 return [FIRMessaging messaging ].FCMToken ;
101102}
102103
103- + (void )registerForNotifiations {
104- messagingDelegate = [ESFBMessagingDelegate new ];
104+ - (void )registerForNotifications {
105105 [messagingDelegate registerForNotifications ];
106106}
107107
You can’t perform that action at this time.
0 commit comments