-
Notifications
You must be signed in to change notification settings - Fork 546
Doesnt work on android #96
Comments
Hm, how are you using Push? NPM install I take it? What is the path Push is stored in vs the path it is being called from? This might be related to the Service Worker path problem seen in #87, which is a very high priority issue I need to look into. I should probably create a formal issue for it. |
hi there. i did an npm install but i just copied the push.min.js to a js folder in my public folder as there was no examples showing me how to use the npm version of the plugin. Best things i found was a video on youtube. That just used the min.js version. If you could provide an example of how to include it from node_modules in my html file that would be great and ill try it and let you know. But according to what I've its a fantastic little lib. Simple and does the job great from the demo page. |
Same problem here. Used npm and then |
I moved the script import into the body of my site from the head and then it worked. |
Same problem. Decktop work fine, but Android not. Installation over http not https:
Push: Push.create("Title", { |
Any updates on this one? I am facing the exact same problem... |
This solved the problem... But is too much code to do it. And inspecting pushjs website, I have no idea how it works on mobile. |
@lovato you do not need to write all that code. Push.js has support for specifying your own service worker( Refer Documentation ) Are you sure you are testing over https ? Chrome now requires a website to be running in a secure context in order to use Notifications. |
Thanks. Will get back into this. |
I've just used the code that is posted in the main example and it doesn't work when I try to use it from my chrome browser.
I'm running it on a local node server and it works fine on the computer.
What really confuses me is that the "Demo button" on the https://nickersoft.github.io/push.js/ works fine.
Any ideas on what might be going on?
The text was updated successfully, but these errors were encountered: