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
- I created a "Certificate" with Ad Hoc on my developer.apple.com
account.
- 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.
- Created a two device with UUID's
- Created a Provisioning Profile (Distribution) with Ad Hoc ( added
App ID and devices to this provision )
PhoneGap Build
- Added Certificate (Ad Hoc)
- Added Provisioning Profile (Ad Hoc)
- Activated the key.
- Rebuild and created an ipa succesfully (app).
Parse.com
- Created and ".p12" certificate from "PushNotification" certificate
which downloaded after created and App ID.
- 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.
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
account.
enabled the "Distribution-Push Notifications" ) and then download
the Certificate. Let's say it's name : "PushNotification"
certificate.
App ID and devices to this provision )
PhoneGap Build
Parse.com
which downloaded after created and App ID.
parse.com.
Here is my code:
and register with :
Hope you can help me. Thanks in advance.