gauntface/simple-push-demo

Unable to see notification on Mobile Chrome v55.0.2883.91 (Android)

jonwhittlestone opened this issue · 5 comments

Hi

When I visit https://gauntface.github.io/simple-push-demo/
I click slider for Enable Push Notifications
I enter text 'Test' in field Add Payload Text
I click SEND A PUSH VIA XHR

What I expect to Happen
I see an Android notification 'Test' in the taskbar

What actually happened
I saw a Chrome dialog asking me to add guantface.github.io to the homescreen
After accepting to add to the homescreen, subsequent clicking of SEND A PUSH VIA XHR did not give a Android notification

Environment

Android 7.0
Nexus 6

Additional notes

I also tried the above scenario on a Samsung S6 running Android 6.0.1 and had the same outcome.

Thanks

I just tried this on Chrome Stable (version 55) and it's working.

What version of Chrome are you testing on? (Menu -> Settings -> About Chrome)

Hi

as per title

screenshot_20170104-164247

Sorry missed the title.

I just tried on a Samsung S6 as it works for me (in both Chrome and Samsung Internet Browser). It could be one of a few issues:

  1. I've known some Google accounts to cause issues with push (i.e. push is never received).
  2. You Chrome instance has gotten in a weird state. Does this demo work in Chrome Beta?

Thanks, I got this working using the Android emulator, SDK 24

This can be closed.

Additional questions though:

  • If the device is locked, will new notifications arrive / be shown?
  • If the Chrome browser is running in the background, will notifications arrive / be shown in the taskbar?

Thanks for your work on this

In response to your questions - yes and yes.

Only caveat is that android settings still affect the notifications (i.e. if the user says not to display notifications on the lockscreen, chrome notifications will adhere to this and no show on the lockscreen).