Page 1 of 2

Push notifications help!

Posted: Sat Sep 21, 2013 8:24 pm
by Eduardo Ramos

Hi! First let me tell you guys that I love appery.io. I have accomplished to do many cool things in just a week of having started to use it. My problem is that I'm struggling with push notifications.

So far I have created three services:

RegistrationService

GetChannels

SubscribeChannels

If I test them in the designer, they all work, but I can't make my app, which I'm running on my iPhone device, to get the push notifications. One thing I'm doing, is setting the and local storage variables into two input fields so I can see them in the UI when running the app on the device. What I noticed is that the token always has value of 'undefined'.

I'm running the RegistrationService and SubscribeChannel (with channel id hardcoded [1873]) at Load event of initial page.

Do you have a backup of an app that uses push notifications that you could share with me? I'm very confused right now.

Any ideas?

Thanks!

Eduardo Ramos


Push notifications help!

Posted: Sat Sep 21, 2013 8:44 pm
by Illya Stepanov

Hi Eduardo -- how you testing it in a browser? Please check in Dev tools (F12 in Chrome) what are the exact values in your local storage that you have defined.


Push notifications help!

Posted: Sat Sep 21, 2013 10:52 pm
by Eduardo Ramos

Hi Illya, thanks for your response.

I had tried it in my chrome, and the variables don't get created if I test it in browser. I just reinstall the .ipa into my iPhone, and I do get a value for devce id, but undefined for token.

See image in next comment.


Push notifications help!

Posted: Sat Sep 21, 2013 10:53 pm
by Eduardo Ramos

Image


Push notifications help!

Posted: Sat Sep 21, 2013 10:53 pm
by Eduardo Ramos

The first input is the device id and the second one is the token.


Push notifications help!

Posted: Sat Sep 21, 2013 10:56 pm
by Eduardo Ramos

And these are the variables being mapped to those input fields: Image


Push notifications help!

Posted: Sat Sep 21, 2013 10:58 pm
by Eduardo Ramos

The first input holds the device id and the second one the token. See below screenshot with variable names.


Push notifications help!

Posted: Sun Sep 22, 2013 8:53 pm
by Eduardo Ramos

Any ideas on this?


Push notifications help!

Posted: Sun Sep 22, 2013 9:14 pm
by Illya Stepanov

Sorry no news -- we need more time. We'll update.


Push notifications help!

Posted: Mon Sep 23, 2013 9:45 pm
by Kateryna Grynko

Hi Eduardo,

I send you a sample app backup. Please test it on your device and let us know if there are any problems.