GoogleChromeLabs / web-push-codelab

Other
557 stars 293 forks source link

The enable push notification button disabled when the whole code is hosted online or even when opened on phone using apache server. #69

Open singhanuragj opened 6 years ago

singhanuragj commented 6 years ago

I'm very new to PWAs & push notifications. Completed the entire tutorial properly. Tested everything successfully on localhost, but, the code is having some issues when accessed through my phone using Xampp's apache server. I tried to host the whole app folder online and then test it on my phone, but this time it didn't even work on the PC. Please look into the issue and suggest a possible fix.

Steps to recreate the issue: 1: Complete the push-notification tutorial. 2: Host the app folder locally using Xampp. 3: Access the page on a smartphone.

                             OR

1: Complete the push-notification tutorial. 2: Host the app folder online using a free hosting website.( I used 000webhost) 3: Access the page on a computer or a smartphone.