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

Don't working push notification in browser (don't fire "push" event in SW) #1399

Open
MrMeison opened this issue Nov 23, 2016 · 4 comments
Open

Comments

@MrMeison
Copy link

MrMeison commented Nov 23, 2016

Expected Behaviour

Push notification is working, "notification" event is fired

Actual Behaviour

Don't working push notification in browser.
I use Firebase for push notification, server worker load, but push event don't fire when message received.
pushServiceURL is default.

Platform and Version (eg. Android 5.0 or iOS 9.2.1)

Version 54.0.2840.99 m (64-bit)

Cordova CLI version and cordova platform version

"cordova": "6.4.0",
"browser" : "4.1.0"

Plugin version

"phonegap-plugin-push": "1.8.4"

Sample Code that illustrates the problem

this.push = PushNotification.init({
            android: {
                senderID: "XXXXXXXXXXX"
            },
            ios: {
                alert: "true",
                badge: "true",
                sound: "true"
            },
            browser: {},
            windows: {}
        })
@macdonst
Copy link
Member

@MrMeison I'll have to take a look at it. The browser code was written to work with our push service for testing not a generic FCM instance. Can you give the instructions at: http://phonegap.com/blog/2016/07/26/phonegap-plugin-push-1-8-0/ a try to see if it works for you?

@lincolnthree
Copy link

Hey, I'm having this issue, too. In fact, on the browser the initial registration callback never returns either. Would really love to be able to hook this up to the same Google FCM as my Android app. Any advice?

Thanks!

@macdonst macdonst added this to the Release 3.0.0 milestone Jun 27, 2017
@macdonst
Copy link
Member

Generic push to the browser will be a feature of the 3.0.0 release. No timeframe.

@mariohmol
Copy link

@macdonst thanks for your clarification. Can u tell me if in the browser registration_id for this plugin will generate a key that can be used on FCM as well?

I'm kind lost of understanding what is this browser support, because when i try to run on a normal browser i receive tha warnings saying that is not cordova or plugin not installed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

4 participants