-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
requestPermission not showing any popup nor resolving the promise - swpush #2
Comments
Did you use the PWA branch? https://github.com/alcfeoh/ng-weather/tree/pwa Also you'll have to use HTTPS (very likely) for the PWA behavior to work properly. |
Yeah I used PWA branch, but haven't tried with https, let me try that. Thank you. |
Tried with https as well, but no luck ( infact I tried deploying to a firebase hosting here). |
Did you start the local service for notifications on port 9020? |
Yes I have. I made a simpler replica of the code here It worked when I served the dist with http-server and used push-server.js for notifications. But still its showing inconsistency. When I unregister service worker and removed the notification permission from chrome, and again visited, its not working, not even sw is registering. I have opened an issue in stackoverflow as well here If you encounter any such issue or have any idea on the same, it would be very much helpful. |
Yeah, I've seen that before (the SW not re-registering) and it might be a
bug with Chrome. One workaround I've seen is people using incognito mode so
they get a new SW no matter what.
*Alain Chautard*
Google Developer Expert in Angular
Consultant and trainer at angulartraining.com - Interstate 21, LLC
al@interstate21.com
www.interstate21.com
ᐧ
…On Tue, Aug 20, 2019 at 11:16 PM jishnunbhattathiri < ***@***.***> wrote:
Yes I have. I made a simpler replica of the code here
<https://github.com/jishnunbhattathiri/angular8-pwa-sample> It worked
when I served the dist with http-server and used push-server.js for
notifications. But still its showing inconsistency. When I unregister
service worker and removed the notification permission from chrome, and
again visited, its not working, not even sw is registering.
I have opened an issue in stackoverflow as well here
<https://stackoverflow.com/questions/57562160/angular-notification-not-showing-native-popup-asking-permission>
If you encounter any such issue or have any idea on the same, it would be
very much helpful.
Thank you for your response again.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2?email_source=notifications&email_token=ABD3M6YIDLDIWOKEJAM56OLQFTMUXA5CNFSM4INEQNNKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4YSCLA#issuecomment-523313452>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABD3M67LDPPSO5JUIOQHMADQFTMUXANCNFSM4INEQNNA>
.
|
Closing because it's not code related, more likely a Chrome issue. |
Thanks for your insights |
Hi, I tried running this code and in my browser (both chrome and firefox latest versions) I am not getting the notification permission popup. push.requestPermssion is hence never resolved and its not sending back the endpoint data. could you please help get it working?
The text was updated successfully, but these errors were encountered: