Ios PushPlugin registered but can't get push

ios PushPlugin registered but can’t get push :

I works with a real device and xcode5.
I created certificat and provising profiles.

I have a nodeJs Server with a node Module that send push to my phone’s token with that log :

[Thu Aug 14 2014 16:20:13 GMT+0200 (CEST)] Send : aa0a646f29c7dda8c5fc4a7882d8765a027a268299ac32fbba7f76976db3d01f
[Thu Aug 14 2014 16:20:13 GMT+0200 (CEST)] open socket

(errors callback doesn’t trigger)

I have an app that can register for push with a token associated to an iphone returned,
“ecb” onNotificationAPN doesn’t trigger, my code :

app.controller('ctrl-landing', function ($scope, $state, $ionicPlatform) {

  $ionicPlatform.ready(function () {

    console.log('__________landingCtrl__________ ready');

    var pushNotification = window.plugins.pushNotification;

    pushNotification.register( function (x) {
      console.log("tokenHandler :");
    }, function (x) {
      console.log("errorHandler :");
    }, {

    var onNotificationAPN = function (event) {
      console.log("EVENT FROM PUSH :");
      if ( event.alert ) {


and i note that in plugin native interface :

- (void)notificationReceived {
NSLog(@"Notification received");

This doesn’t log in xcode console where it should be.

So I don’t know where is the problem :

  • maybe from plugin utilisation
  • maybe from module that send push
  • maybe from provisioning profile in xcode5

Thanks for help :wink:

Oh i got it work…

My node module to send push is but it didn’t confirm push success.
I tried it to test, it send push from my computer and gave me errors with my cert and key. I convert .p12 files into .pem files and my “ecb” in app trigger well.

Sorry for stupid error :blush:

1 Like

Hi @rdb,

I install cordova push notification plugin.
I am not able to get token in IOS. Can you help me how can i get token?



Do you get this message ?

“no valid ‘aps-environment’ entitlement”

Thanks for reply …
yes i am getting “no valid ‘aps-environment’ entitlement” error.

Can you tell me what is the solution ??

You have a problem with your certificate.

It’s better to restart all the process with this tuto :

1 Like