Skip to content

Can't register Push Notification service with iOS Devices - PhoneGap ParsePlugin #90

@Farukest

Description

@Farukest

I'm using PhoneGap ParsePlugin. I can register to "parse.com Push Notification Service" with my Android devices. Everything clear with Android but not with Ios. Whatever i tried i couldn't register.

I followed these steps on my Apple Developer Account

  1. I created a "Certificate" with Ad Hoc on my developer.apple.com
    account.
  2. Created an "App IDs" with Push Notifications ( configured and
    enabled the "Distribution-Push Notifications" ) and then download
    the Certificate. Let's say it's name : "PushNotification"
    certificate.
  3. Created a two device with UUID's
  4. Created a Provisioning Profile (Distribution) with Ad Hoc ( added
    App ID and devices to this provision )

PhoneGap Build

  1. Added Certificate (Ad Hoc)
  2. Added Provisioning Profile (Ad Hoc)
  3. Activated the key.
  4. Rebuild and created an ipa succesfully (app).

Parse.com

  1. Created and ".p12" certificate from "PushNotification" certificate
    which downloaded after created and App ID.
  2. Added this certificate to "Apple Push Certificate" on
    parse.com.

Here is my code:

onDeviceReady: function() {
  try {
      parsePlugin.initialize("appID", "clientKey");
  }catch (err){
      alert(err.message);
  }
}

and register with :

var parsePlugin = {

initialize: function(appId, clientKey, successCallback, errorCallback) {
    cordova.exec(
        successCallback,
        errorCallback,
        'ParsePlugin',
        'initialize',
        [appId, clientKey]
    );
},

Hope you can help me. Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions