Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12703

Push Notification not working via cordova cli

    XMLWordPrintableJSON

Details

    Description

      Facing an issue when creating an iOS build with the below command.

      cordova build ios --release --device --buildConfig
      

      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 running,

      cordova prepare ios
      

      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:

      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
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hirenhcm Hiren
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: