phonegap-build / PushPlugin

This repository is deprecated head to phonegap/phonegap-push-plugin
https://github.com/phonegap/phonegap-plugin-push
MIT License
1.32k stars 996 forks source link

Define APNS data in cold-start functionality? #62

Open MWBKris opened 10 years ago

MWBKris commented 10 years ago

Where do I have to define the APNS data in cold-start functionality?

The register function can't be executed because I'm probably missing some settings:

$("#app-status-ul").append('

  • registering iOS
  • '); pushNotification.register(tokenHandler, errorHandler, {"badge":"true","sound":"true","alert":"true","ecb":"onNotificationAPN"});

    Where do I need to define the APNS settings? config.xml?

    Thanks in advance

    bobeast commented 10 years ago

    Could you rephrase the question? I don't understand what you mean by "APNS data in cold-start functionality" If you are referring to the contents of the push notification itself, that needs to be defined on your push server.

    abe-pleasant commented 10 years ago

    It's possible he is talking about something analogous to the GCM sender ID, which you do set in the pushNotification.register() call. Of course there is nothing like this for APNS - no APNS "settings" that need to go into your phonegap app.

    Instead, on your server that is sending the push notifications, you do need to specify an APNS P12 certificate and a password for it. But that is not part of PushPlugin.

    If pushNotification.register() is failing it would be due to some other problem.

    bobeast commented 10 years ago

    @abe-pleasant Thanks. I'll give him a while to respond and then close the issue if he does not do so.