cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hiren (JIRA)" <>
Subject [jira] [Commented] (CB-12703) Push Notification not working via cordova cli
Date Sun, 30 Jul 2017 19:07:00 GMT


Hiren commented on CB-12703:

Q. Are you building your app from Xcode instead of using Cordova CLI?
A. _Push notification workes when app is build using Xcode. Using command line I do not receive
any push notification_

Q. Do you have the .entitlements file for the push environment?
A. _Yes I have this file._

Q. If you go to capabilities section is push notifications enabled and without errors?
A. _Yes i do +not+ have any error._

I am sure that my push notification is set up correctly as building with Xcode all is good.
Using Cordova command(mentioned below) line the app build and all other functionality is working
_expect_ push notification.
cordova build ios --release --device --buildConfig

Please, if you have some idea/suggestions to isolate the issue, I can try and update my outcome

> Push Notification not working via cordova cli
> ---------------------------------------------
>                 Key: CB-12703
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-cli, cordova-ios
>    Affects Versions: 6.5.0
>         Environment: iPhone
>            Reporter: Hiren
>            Priority: Minor
>              Labels: backlog
>             Fix For: cordova-ios@4.5.0
> Facing an issue when creating an iOS build with the below command.
> {noformat}
> cordova build ios --release --device --buildConfig
> {noformat}
> When generating the build with the above command the ipa gets created successfully and
user is also able to install and use the app. But we do not get any push notifications. We
are using Firebase to manage our push notification and sending it from firebase console. Here
i can  see that the app generates a devices token but sending a notification on this token
does not trigger any message on the mobile.
> But notification works when we create a build using Xcode. We generate the build by first
> {noformat}
> cordova prepare ios
> {noformat}
> Then using the Archive option from Product menu in Xcode.
> I believe that the APN entitle file is not getting set to production. We are creating
an app using enterprise certificate.
> This is creating an issue when running Jenkins CI. My build gets created but I loose
the push notification functionality. Hence i have to release ios builds manually from my system.
> Update:
> Following are the plugins that are used in the cordova project:
> {noformat}
> cordova-plugin-file                
> cordova-plugin-splashscreen
> cordova-plugin-file-transfer
> cordova-plugin-statusbar
> cordova-plugin-camera
> cordova-plugin-inappbrowser
> cordova-plugin-whitelist
> cordova-plugin-compat
> cordova-plugin-media-capture
> cordova-sqlcipher-adapter
> cordova-plugin-network-information
> cordova-plugin-device
> cordova-plugin-networkinterface
> {noformat}

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message