File tree 2 files changed +7
-7
lines changed 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -90,9 +90,9 @@ xmlns:android="http://schemas.android.com/apk/res/android">
90
90
<header-file src =" src/ios/FirebasePlugin.h" />
91
91
<source-file src =" src/ios/FirebasePlugin.m" />
92
92
93
- <framework src =" Firebase/Crashlytics" type =" podspec" spec =" 6.32.2 " />
94
- <framework src =" Firebase/Analytics" type =" podspec" spec =" 6.32.2 " />
95
- <framework src =" Firebase/Messaging" type =" podspec" spec =" 6.32.2 " />
93
+ <framework src =" Firebase/Crashlytics" type =" podspec" spec =" 6.33.0 " />
94
+ <framework src =" Firebase/Analytics" type =" podspec" spec =" 6.33.0 " />
95
+ <framework src =" Firebase/Messaging" type =" podspec" spec =" 6.33.0 " />
96
96
</platform >
97
97
98
98
<platform name =" browser" >
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ - (void)pluginInitialize {
29
29
- (void ) getInstanceId : (CDVInvokedUrlCommand *)command {
30
30
@try {
31
31
[self registerForRemoteNotification ];
32
- [[FIRInstanceID instanceID ] instanceIDWithHandler : ^(FIRInstanceIDResult * _Nullable result , NSError * _Nullable error) {
33
- if (error == nil && result. token != nil ) {
34
- [self sendPluginSuccessWithMessage: result. token command: command];
32
+ [[FIRMessaging messaging ] tokenWithCompletion : ^(NSString * _Nullable token , NSError * _Nullable error) {
33
+ if (error == nil && token != nil ) {
34
+ [self sendPluginSuccessWithMessage: token command: command];
35
35
} else {
36
36
[self sendPluginErrorWithError: error command: command];
37
37
}
@@ -181,7 +181,7 @@ - (void)unregister:(CDVInvokedUrlCommand *)command {
181
181
[self runOnMainThread: ^{
182
182
[[UIApplication sharedApplication ] unregisterForRemoteNotifications ];
183
183
}];
184
- [[FIRInstanceID instanceID ] deleteIDWithHandler: ^ void (NSError *_Nullable error) {
184
+ [[FIRMessaging messaging ] deleteDataWithCompletion: ^ (NSError * _Nullable error) {
185
185
if (error) {
186
186
[self sendPluginErrorWithError: error command: command];
187
187
} else {
You can’t perform that action at this time.
0 commit comments