Eduardo Ramos
Posts: 0
Joined: Fri Sep 06, 2013 10:20 pm

Push notifications help!

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

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Push notifications help!

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.

Eduardo Ramos
Posts: 0
Joined: Fri Sep 06, 2013 10:20 pm

Push notifications help!

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.

Eduardo Ramos
Posts: 0
Joined: Fri Sep 06, 2013 10:20 pm

Push notifications help!

Image

Eduardo Ramos
Posts: 0
Joined: Fri Sep 06, 2013 10:20 pm

Push notifications help!

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

Eduardo Ramos
Posts: 0
Joined: Fri Sep 06, 2013 10:20 pm

Push notifications help!

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

Eduardo Ramos
Posts: 0
Joined: Fri Sep 06, 2013 10:20 pm

Push notifications help!

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

Eduardo Ramos
Posts: 0
Joined: Fri Sep 06, 2013 10:20 pm

Push notifications help!

Any ideas on this?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Push notifications help!

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Push notifications help!

Hi Eduardo,

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

Return to “Issues”