I mean:
https://www.mtbconnection.com/OneSignalSDKWorker.js
It's required to have this file on the root level.
I use a parametric router, do you know how I can do it?

routers = dict(
    BASE = dict(
        domains = {
            "www.mtbconnection.com" : "mtbconnection",
        }
    ),
    mtbconnection = dict(languages=['en', 'it'], default_language='it'),
)

I've saw in the manual that it's possible but only with the pattern-based 
system:
routes_in = (
  ('/favicon.ico', '/examples/static/favicon.ico'),
  ('/robots.txt', '/examples/static/robots.txt'),
)
routes_out = ()
And with this system I don't know how I can manage translate the actual 
functions of my parametric routes.py.

Il giorno martedì 17 gennaio 2017 17:54:39 UTC+1, Anthony ha scritto:
>
> 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