Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

registrationID is not received in IOS #956

Closed
baron92 opened this issue Jun 2, 2016 · 4 comments
Closed

registrationID is not received in IOS #956

baron92 opened this issue Jun 2, 2016 · 4 comments

Comments

@baron92
Copy link

baron92 commented Jun 2, 2016

Hi!
I'm trying to receive push notifications . Everything works fine on Android , but iOS registration is not successful . The function push.on('registration') does not receive the token IOS.

Expected Behaviour

   Don't receive registrationID in IOS

Actual Behaviour

   registrationID received from registration callback in Android
   registrationID don't received from registration callback in IOS.

Platform and Version

  Android 5.0
  IOS 6.1.3

What device vendor

  Samsung Note 3
  Iphone 3gs

Cordova CLI version

cordova --version   5.1.1

Plugin version

grep phonegap-plugin-push   1.4.3

Sample Code that illustrates the problem

   var push = PushNotification.init({
           android: {
              senderID: "XXXXXXXX"
           },
        ios: {
         alert: "true",
         badge: "true",
         sound: "true"
          }
 });

push.on('registration', function(data) {
     alert(data.registrationId);
     localStorage.setItem("token", data.registrationId);
});

push.on('notification', function(data) {
 alert(data.title+' msg: '+data.message);
});

push.on('error', function(e) {
    alert("ERROR: " + e.message);
});
@macdonst
Copy link
Member

macdonst commented Jun 2, 2016

@baron92 did you setup your certificates correctly? Can you run in Xcode so we can see the logs?

@baron92
Copy link
Author

baron92 commented Jun 2, 2016

@macdonst I configured the development certificates and enabled push notifications.
I am using Intel XDK in windows. I have developer certificate and provisioning profile with enabled Push Notifications in the identifiers APP.

@macdonst
Copy link
Member

macdonst commented Jun 2, 2016

@baron92 I'm going to mark this as a duplicate of #926 where @tony-- from Intel does a great write up on what is required.

@macdonst macdonst closed this as completed Jun 2, 2016
@lock
Copy link

lock bot commented Jun 4, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

2 participants