Re: [web2py] Re: Push Notifications

2020-11-20 Thread António Ramos
Yes you make an app in web2py that subscribes to one or many pusher notification channels. That channels are created by you in your html of your web2py app. your web2py server sends notifications to pusher.com using python code ,and your webpages subscribes the same notifications using javascript.

Re: [web2py] Re: Push Notifications

2020-11-20 Thread Christian Varas
Hi! I need to implement this and receive the notifications in the phone android/iOS. For this do I need to make my own app? Or do you use an app who can subscribe to push notifications in pusher.com ? This is off topic but any recommendation is appreciated Cheers. Chris El El vie, 20 de nov. de 2

Re: [web2py] Re: Push Notifications

2020-11-20 Thread mostwanted
Gratitude On Friday, November 20, 2020 at 10:33:10 AM UTC+2 Ramos wrote: > create a module inside web2py > API_Pusher.py > > import pusher > > def pusher_client(): > return pusher.Pusher( > app_id='yourid', > key='yourkey', >

Re: [web2py] Re: Push Notifications

2020-11-20 Thread António Ramos
create a module inside web2py API_Pusher.py import pusher def pusher_client(): return pusher.Pusher( app_id='yourid', key='yourkey', secret='yoursecret', cluster='eu',

Re: [web2py] Re: Push Notifications

2020-11-19 Thread mostwanted
Hey Ramos, I was able to successfully register the app on pusher.com. towards step 4 its says i should copy this code: *CODE:* curl -H "Content-Type: application/json" \ -H "Authorization: Bearer 9C9232906DFC6C8F8115926CC30D637945EB75F60467DA77977C399C4235E61C" \ -X POST "https://733e2

Re: [web2py] Re: Push Notifications

2020-11-16 Thread mostwanted
Thanks alot Ramos, think this will work, very little work needs to be done here, I'll try it out. On Tuesday, November 17, 2020 at 1:06:10 AM UTC+2 Ramos wrote: > Why reiventing the wheel ??? > https://pusher.com/ > > I use it with web2py and works like a charm > > > Em seg., 16 de nov. de 2020

Re: [web2py] Re: Push Notifications

2020-11-16 Thread AGRogers
Thanks for the tip Antonio. The free version could work well for me. I dont mind reinventing the wheel - I just dont like fixing it when it breaks :) ___ *www.TenOutOfTen.org* rogers...@gmail.com (+95) 09 250018669 (Myanmar) On Tue, 17 Nov 2

Re: [web2py] Re: Push Notifications

2020-11-16 Thread António Ramos
Why reiventing the wheel ??? https://pusher.com/ I use it with web2py and works like a charm Em seg., 16 de nov. de 2020 às 08:44, mostwanted escreveu: > So far all I have been able achieve is asking the user for permission to > send them notifications & if they accept all that happens is that

[web2py] Re: Push Notifications

2020-11-16 Thread mostwanted
So far all I have been able achieve is asking the user for permission to send them notifications & if they accept all that happens is that everytime they open the app they get a greetings notification, achieving that was not complicated because it was straight forward, I placed the code in my m

[web2py] Re: Push Notifications

2016-11-08 Thread Dave S
On Tuesday, November 8, 2016 at 4:45:48 AM UTC-8, Michael Beller wrote: > > I've been thinking about trying https://pusher.com/ > > They use servers running on an Amazon cluster? /dps > > On Wednesday, November 2, 2016 at 6:32:54 PM UTC-4, David wrote: >> >> Hello, >> >> My website allows u

[web2py] Re: Push Notifications

2016-11-08 Thread Dave S
On Wednesday, November 2, 2016 at 7:37:52 PM UTC-7, Anthony wrote: > > [...] You can also use various realtime messaging services (e.g., Fanout > ), or something like Pushpin > (an open source proxy server used by Fanout), which is probably a bit more

[web2py] Re: Push Notifications

2016-11-08 Thread Michael Beller
I've been thinking about trying https://pusher.com/ On Wednesday, November 2, 2016 at 6:32:54 PM UTC-4, David wrote: > > Hello, > > My website allows users to send messages to one another; however, the only > way to see their new messages is to refresh the page. Is there any way to > notify th

[web2py] Re: Push Notifications

2016-11-03 Thread David
I read your link, Anthony. Based off of your link, a few other pages linked from your link, and a couple of Google searches I can see that sqlite is small time(unless you tweak it) and I'll definitely need to switch my db eventually. Thanks for both of you guys time. -- Resources: - http://web

[web2py] Re: Push Notifications

2016-11-03 Thread Anthony
On Thursday, November 3, 2016 at 3:51:16 PM UTC-4, Dave S wrote: > > > With this mechanism, you'd spawn a web worker to do jquery/ajax to check >>> when it was time to replace the content. A couple of the examples >>> calculate Pi, and paste the results into the main page. >>> >> >> This approa

[web2py] Re: Push Notifications

2016-11-03 Thread Anthony
On Thursday, November 3, 2016 at 3:48:29 PM UTC-4, David wrote: > > Thanks for such a thorough response, Anthony! > > Long polling seems to be the way to go for my website. I've been reading > up on the tornado web socket all day. > > I'm nearing 100 users on my website and i believe that speed

[web2py] Re: Push Notifications

2016-11-03 Thread Dave S
On Wednesday, November 2, 2016 at 7:37:52 PM UTC-7, Anthony wrote: > > On Wednesday, November 2, 2016 at 7:52:05 PM UTC-4, Dave S wrote: >> >> There are 2 mechanism in HTML5, I believe, but I'm only going to point >> you at one for the moment: Web Workers. >> > http://www.htmlgoodies.com/html5/

[web2py] Re: Push Notifications

2016-11-03 Thread Jaimee S
Thanks for such a thorough response, Anthony! Long polling seems to be the way to go for my website. I've been reading up on the tornado web socket all day. I'm nearing 100 users on my website and i believe that speed will be a problem eventually. I'm deployed to python anywhere like you sugg

[web2py] Re: Push Notifications

2016-11-02 Thread Anthony
On Wednesday, November 2, 2016 at 7:52:05 PM UTC-4, Dave S wrote: > > There are 2 mechanism in HTML5, I believe, but I'm only going to point you > at one for the moment: Web Workers. > http://www.htmlgoodies.com/html5/javascript/working-with-web-workers-in-html5-powered-web-pages.html > > > htt

[web2py] Re: Push Notifications

2016-11-02 Thread Jaimee S
Thanks for the speedy reply! I've looked over the links you sent. the first two didn't work for me on my browser. I'm on a a mac and used the default browser. Will having a web socket open 24/7 slow down my website? My knowledge of web sockets is limited at the moment On Wednesday, November 2

[web2py] Re: Push Notifications

2016-11-02 Thread Dave S
On Wednesday, November 2, 2016 at 3:32:54 PM UTC-7, Jaimee S wrote: > > Hello, > > My website allows users to send messages to one another; however, the only > way to see their new messages is to refresh the page. Is there any way to > notify the user via any method? > > Thanks for your time