Push notification on android in Background data restricted mode.

56 views
Skip to first unread message

socia...@gmail.com

unread,
Nov 28, 2017, 7:54:39 AM11/28/17
to Chromium-dev
In Android, Push notifications get disabled when Chrome is in background data restricted mode. 
I guess we use GCM services which would be running even when above condition is met. 

Still notifications are blocked. How is this managed?
Any pointers to sample code snippet will help.

Thanks


Peter Beverloo

unread,
Nov 28, 2017, 8:01:42 AM11/28/17
to socia...@gmail.com, Chromium-discuss
+chromium-discuss, chromium-dev to bcc

Are you using the JavaScript Push API or are you developing a feature on top of Chrome's GCM Driver?

In either case, which Android version are you using? We're aware of message delivery being subject to Doze mode even for high priority messages in Android N and O, in all other versions it should be fine.

Thanks,
Peter

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/c7ddb798-2f02-46a3-b5f2-c3ae2d798101%40chromium.org.

socia...@gmail.com

unread,
Nov 28, 2017, 9:26:24 AM11/28/17
to Chromium-dev
Hi Peter,

Thanks for the Reply. 
I am using GCM driver in my app and working on N OS. 

Coming to the handling in data restricted mode, does this require any special handling from chrome side or does the android framework take care of it by itself?
Reply all
Reply to author
Forward
0 new messages