Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49361

Push notifications stopped to work

$
0
0

@JerryBels wrote:

Hello,
I had my push notifications working for months, and now I migrated it to the last ionic.io version. Now I have this return from my calls to push endpoint :

    { data:
       { config: { tokens: [Object], notification: [Object], profile: 'main' },
         uuid: 'some-long-universal-unique-id',
         app_id: '39f1dcf4',
         state: 'enqueued',
         created: '2016-10-25T13:13:57.079603+00:00',
         status: 'open' },
      meta:
       { request_id: 'some-long-request-id',
         status: 201,
         version: '2.0.0-beta.0' } }

On the client side I migrated as well of course :

$ionicPush.register().then(function(t) {
    return $ionicPush.saveToken(t, { ignore_user: true });
}).then(function(t) {
    console.log('Token saved:', t.token);
});
$rootScope.$on('cloud:push:notification', function(event, data) {
    console.log(event, data);
    var payload = data.payload;
    console.log(payload);
});

I'm using restler to send this from my server : https://github.com/danwrong/restler . I don't think there is an issue with the user's token. On the device console.log I have the same that is used on the server side. But ultimately the device doesn't receive anything.

Thanks ahead for helping !

Posts: 5

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 49361

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>