0 Replies Latest reply on Jul 25, 2016 8:06 AM by damodars18717003

    How to integrate with GCM for push notifications.

    damodars18717003

      Hi

       

      I am using phonegap-plugin-push to receive notifications and GCM to send them. All works fine on Android, not so good for iOS. I have uploaded p12 APNS certificates to GCM, I am also supposed to add GCM-config-file.plist into the project, as it is written on GCM's website "The file contains configuration details, such as keys and identifiers, for the services you just enabled. Drag the GoogleService-Info.plist file you just downloaded into the root of your Xcode project and add it to all targets. ".

       

      How do I add it to the build?

       

      I have seen promising config-files xml tag but documentation is too criptic for me in order to use it.

       

      This is the content of the .plist file

       

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

      <plist version="1.0">

      <dict>

          <key>GCM_SENDER_ID</key>

          <string>somenumber</string>

          <key>PLIST_VERSION</key>

          <string>1</string>

          <key>BUNDLE_ID</key>

          <string>bundle id</string>

          <key>PROJECT_ID</key>

          <string>project id</string>

          <key>IS_ADS_ENABLED</key>

          <false/>

          <key>IS_ANALYTICS_ENABLED</key>

          <false/>

          <key>IS_APPINVITE_ENABLED</key>

          <false/>

          <key>IS_GCM_ENABLED</key>

          <true/>

          <key>IS_SIGNIN_ENABLED</key>

          <false/>

          <key>GOOGLE_APP_ID</key>

          <string>google app id</string>

      </dict>

      </plist>

       

      Also the bundle id is com.homies in the case of my app. Is it valid in phonegap?