Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Push template app works on iOS but not on Android #2089

Closed
josegrad opened this issue Dec 4, 2017 · 4 comments
Closed

Push template app works on iOS but not on Android #2089

josegrad opened this issue Dec 4, 2017 · 4 comments
Labels

Comments

@josegrad
Copy link

josegrad commented Dec 4, 2017

The steps here http://docs.phonegap.com/tutorials/develop/push-notifications/ work fine with iOS.

However with Android it just doesn't work

setupPush: function() {
        console.log('calling push init');  <------ STAYS HERE
        var push = PushNotification.init({
            "android": {
                "senderID": "XXXXXXXX"
            },
            "browser": {},
            "ios": {
                "sound": true,
                "vibration": true,
                "badge": true
            },
            "windows": {}
        });
        console.log('after init');

PushNotification.init never returns.
I've tried with 2 different Android devices with the same result.

Why the Push template works just fine on iOS but fails on Android?

@macdonst
Copy link
Member

macdonst commented Dec 4, 2017

@josegrad before I look into this can you tell me what version of the PhoneGap Developer App you are using?

@josegrad
Copy link
Author

josegrad commented Dec 4, 2017

Thanks macdonst.

The version of PhoneGap Developer is 1.8.2 (both on Android and on iOS), installed today.
Yesterday I installed the Phonegap Desktop app for Mac.

So pretty much a fresh install of all the tools. Following line by line the push tutorial works fine only on iOS.

@macdonst
Copy link
Member

macdonst commented Dec 4, 2017

@josegrad it's broken in 1.8.2. Follow this issue to see the workaround and get notified when it is fixed.

phonegap/phonegap-app-developer#516

@lock
Copy link

lock bot commented Jun 3, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

2 participants