On Tuesday, January 17, 2017 at 9:50:53 AM UTC-5, Gael Princivalle wrote:
>
> It's required to have the 3 SDK file accessible from the top level root.
> See here at 2.3:
> https://documentation.onesignal.com/docs/web-push-sdk-setup-https
>
> For an html file I know how to do it, but for json or js files how can I 
> do it?
>

I'm not sure what you mean. In order to set up web push notifications for a 
given user, that user must load an HTML page from your site, including the 
head content described in those instructions. Once that page has loaded and 
the user has consented, a background service worker will be started, and 
you will be able to push notifications to the user's device (even if they 
are not currently viewing your website in the browser).

Anthony

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to