Cordova-plugin-firebasex: iOS push capabilities

Created on 4 Sep 2019  路  6Comments  路  Source: dpa99c/cordova-plugin-firebasex

I have successfully installed plugin but the notification does not work until I enable Push Notification capabilities via Xcode. Is it possible to configure this during plugin installation ?


Setup
Platform: iOS

Plugin version: 6.1.0

Most helpful comment

Any other suggestion how we could build the app without manually checking that option in Xcode?

Especially interested since we are using ionicframework's applflow builds, where access to xcode is not an option.

All 6 comments

No, it's not possible to change Xcode project capability settings programmatically.

I found that cordova-plugin-googleplus does it via custom cordova hook.

That hook doesn't modify the Xcode project capabilities, it just adds the keychain sharing entitlements - this plugin adds the APNS entitlements directly via the plugin.xml without need of a hook script.

Thanks for clarification.

That hook doesn't modify the Xcode project capabilities, it just adds the keychain sharing entitlements - this plugin adds the APNS entitlements directly via the plugin.xml without need of a hook script.

@dpa99c Hi, i've the same problem, push capability is not enabled.
On iOS platform output i can see both .plist that you refer to ("platforms/ios/APP_NAME/Entitlements-Debug.plist" and "platforms/ios/APP_NAME/Entitlements-Release.plist") with aps-environment setting.
If i enabled push capability from XCode it set aps-environment setting into "platforms/ios/APP_NAME/Resources/APP_NAME.entitlements" and push notifications is working.
I've also cordova deep-link plugin (maybe create conflict) that set associated-domains setting into that file.
How can i force the aps setting into the entitlements file?

Any other suggestion how we could build the app without manually checking that option in Xcode?

Especially interested since we are using ionicframework's applflow builds, where access to xcode is not an option.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

leabdalla picture leabdalla  路  7Comments

almothafar picture almothafar  路  5Comments

JumBay picture JumBay  路  7Comments

zmoshansky picture zmoshansky  路  6Comments

capc0 picture capc0  路  5Comments