Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Angular push tutorial issues

Hi,
I've spent the last couple of nights battling with the tutorial at https://devcenter.appery.io/tutorials..., and I think it needs a bit of polishing.

A few points:

  1. Nowhere does it say where to put the X-Appery-Push-API-Key details

  2. The sample project doesn't enable the correct cordova plugins - device and the push notification ones are needed but are not enabled.

  3. The sample project includes values in the settings service, which are not mentioned in the tutorial (and my own project, which isn't copied from the sample project) seems to work OK without them.

    Finally - Most people will want to register the app on "device ready" or whatever the Angular equivalent is, not after a button is pressed. Could you share instructions on how to do that please?

    Regards,
    Andy

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Angular push tutorial issues

Hi,

I got the last point sorted: called regPush() within the $scope.init() function.

The app is now registering and receiving notifications fine.

I have got an issue using the Genymotion emulator however - it doesn't register. But I'll investigate further on that myself. I'm not convinced it's an issue with yourselves.

Andy

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Angular push tutorial issues

Hello Andrew,

Push notifications work only on real devices.

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Angular push tutorial issues

Ah thanks Sergiy. I thought I'd had it working in the past, and have done some digging around. It's possible, with a bit of work:

http://inthecheesefactory.com/blog/ho...

I've not tested these specific instructions, but I think I've had it working in the past. However, I deleted that emulated device and created a new one, so I've lost the capability. I'll test this tonight and confirm back here whether it works.

Regards,
Andy

Andrew Peacock
Posts: 0
Joined: Thu Jan 09, 2014 10:03 pm

Angular push tutorial issues

Hi,
For anyone following this, I ended up using the instructions at https://sinamanavi.wordpress.com/tag/...

Additionally, at the end, I launched Google Play on the emulator, searched for Google+, and updated that one app. That resolved lots of "google+ has stopped working" errors.

And now I've got notifications on Genymotion!

Andy

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Angular push tutorial issues

Glad to hear things are sorted out now!

Return to “Issues”