Re: [web2py] Re: Web2py app on Android/IOS with notifications

2017-01-19 Thread Gael Princivalle
>Or better yet, configure your web server to serve those files directly, without hitting web2py at all. Yes that's the better solution, thanks. -- Gael Princivalle 2017-01-17 20:20 GMT+01:00 Anthony : > On Tuesday, January 17, 2017 at 2:01:28 PM UTC-5, Gael Princivalle wrote

[web2py] Re: Web2py app on Android/IOS with notifications

2017-01-17 Thread Anthony
On Tuesday, January 17, 2017 at 2:01:28 PM UTC-5, Gael Princivalle wrote: > > 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( >

[web2py] Re: Web2py app on Android/IOS with notifications

2017-01-17 Thread Gael Princivalle
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", } ), mt

[web2py] Re: Web2py app on Android/IOS with notifications

2017-01-17 Thread Anthony
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

[web2py] Re: Web2py app on Android/IOS with notifications

2017-01-17 Thread Gael Princivalle
Thanks Anthony, OneSignal seems a good solution. I took a look to the API. https://documentation.onesignal.com/reference Some examples: https://documentation.onesignal.com/reference#create-notification I'll try to use it also because it could be a simple all-around solution, when web push notific

[web2py] Re: Web2py app on Android/IOS with notifications

2017-01-16 Thread Leonel Câmara
You can do it using something like pyAPNs for iOS devices and python-gcm for android ones. I actually did it a while ago, and while it worked, I do not recommend it as I faced many problems in the beginning, and I would follow Anthony's suggestion nowadays. I will give you my code using these m

[web2py] Re: Web2py app on Android/IOS with notifications

2017-01-15 Thread Anthony
You might consider a service like OneSignal (it's free). It's all client-side Javascript, so doesn't interact with web2py. Anthony On Sunday, January 15, 2017 at 9:15:29 AM UTC-5, Gael Princivalle wrote: > > Hello. > > There is a really interesting post about Web2py inte