Cordova-plugin-firebase: APNS token type issue

Created on 27 Sep 2018  路  7Comments  路  Source: arnesson/cordova-plugin-firebase

File AppDelegate+FirebasePlugin.m.
In the method: - (void)application:(UIApplication )application didRegisterForRemoteNotificationsWithDeviceToken:(NSData )deviceToken
instead of
[FIRMessaging messaging].APNSToken = deviceToken;
I have to use
[[FIRMessaging messaging] setAPNSToken:deviceToken type:FIRMessagingAPNSTokenTypeSandbox];
every time when I making a build in debug mode (code signing iOS Developer).
Seems like issue appeared after update to the last Xcode (10.0). It might be because APNS token type not properly defined because of that. Am I right ? Do you have any ideas ?
xCode: Version 10.0 (10A255)
cordova-plugin-firebase: version 2.0.1

build iOS

All 7 comments

Same problem with this versions

+1 @Hanzofm

Check out this cordova-ios issue to see if the workaround works to solve your issue

With that change, are you able to get notifications on iOS ?

@christianguevara check the thread on https://github.com/arnesson/cordova-plugin-firebase/issues/902 as it seems to be related

Yes, already solved the problem updating to 2.0.4 and using legacy build system

I just need to go --> File --> WorspaceSettings --> Build Settings(change here to "Legacy Build System"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matthitachi picture matthitachi  路  5Comments

DanielAccorsi picture DanielAccorsi  路  3Comments

eilian92 picture eilian92  路  4Comments

arunkatariaoodles picture arunkatariaoodles  路  4Comments

Zrnik picture Zrnik  路  3Comments