-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Fixed notification permission prompt #6003
Conversation
@@ -56,3 +56,10 @@ | |||
//= require keybindings.js | |||
//= require realtime_username_validation.js | |||
//= require cable.js | |||
|
|||
Notification.requestPermission().then(function (permission) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! I guess I'd prefer this to be in a sub-file like notifications.js
or could it fit in the cable.js
file? Just because this is mostly a file for concatenating things. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! Let's merge and test this out.
🎉 |
Are you going to deploy it on stable?
…On Thu, 11 Jul 2019, 04:56 Jeffrey Warren, ***@***.***> wrote:
🎉
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6003?email_source=notifications&email_token=AE6AEYPQ7O2RUYCNWWJZEJDP6ZV3JA5CNFSM4H7ROIP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZVBA6Q#issuecomment-510267514>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE6AEYIHLLKXPXMN6GNEBNDP6ZV3JANCNFSM4H7ROIPQ>
.
|
Actually stable server is auto deployed from master branch now! So it should be live. |
I am trying to run it on unstable but the last build is running from past
2-3 hours. Can you stop the build so that I can deploy and test on unstable.
…On Thu, Jul 11, 2019 at 8:33 AM Jeffrey Warren ***@***.***> wrote:
Actually stable server is auto deployed from master branch now! So it
should be live.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6003?email_source=notifications&email_token=AE6AEYMMWAWQSBJMFOODZDTP62PHJA5CNFSM4H7ROIP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZVLMZQ#issuecomment-510309990>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE6AEYPE6PT3JGN4BJHYKEDP62PHJANCNFSM4H7ROIPQ>
.
|
sure, i'll stop it now!
On Thu, Jul 11, 2019 at 12:00 PM Naman Gupta <notifications@github.com>
wrote:
… I am trying to run it on unstable but the last build is running from past
2-3 hours. Can you stop the build so that I can deploy and test on
unstable.
On Thu, Jul 11, 2019 at 8:33 AM Jeffrey Warren ***@***.***>
wrote:
> Actually stable server is auto deployed from master branch now! So it
> should be live.
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#6003?email_source=notifications&email_token=AE6AEYMMWAWQSBJMFOODZDTP62PHJA5CNFSM4H7ROIP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZVLMZQ#issuecomment-510309990
>,
> or mute the thread
> <
https://github.com/notifications/unsubscribe-auth/AE6AEYPE6PT3JGN4BJHYKEDP62PHJANCNFSM4H7ROIPQ
>
> .
>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#6003?email_source=notifications&email_token=AAAF6J3YIWEE3QRECV23DC3P65KHHA5CNFSM4H7ROIP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZXFJYA#issuecomment-510547168>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6JYJWKLUSTHN4MKUULLP65KHHANCNFSM4H7ROIPQ>
.
|
Any idea why commenting on unstable is causing error? Is it due to mailers? |
Got the error! Sharing now!
https://sentry.io/share/issue/ca4298c2d67742d3a255d8adb3ce0719/
…On Thu, Jul 11, 2019 at 2:54 PM Naman Gupta ***@***.***> wrote:
[image: Screen Shot 2019-07-12 at 12 23 44 AM]
<https://user-images.githubusercontent.com/20709985/61077106-5655cc80-a43b-11e9-807d-7b2ac39a9d33.png>
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#6003?email_source=notifications&email_token=AAAF6J5TLJLKQ4SIRGL2C3LP656VNA5CNFSM4H7ROIP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZXUZJI#issuecomment-510610597>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6JYGF7VM7AQD3THFICLP656VNANCNFSM4H7ROIPQ>
.
|
I guess this is not related to manually creating comments? Isn't it related to Tweet's feature? What do you think? |
Yeah I got it! It is https://sentry.io/share/issue/0b9d839e6e86491cb4bc1db56023ad76/ SMTP related error! |
I commented the mailing notification code and testing now on unstable. |
Sorry, i sent quickly from email without looking at it, but glad you figure
it out!
…On Thu, Jul 11, 2019 at 3:04 PM Naman Gupta ***@***.***> wrote:
I commented the mailing notification code and testing now on unstable.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#6003?email_source=notifications&email_token=AAAF6JYZHNWQ6GETYSY5XN3P657YJA5CNFSM4H7ROIP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZXVS3Y#issuecomment-510613871>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAAF6J4BZBUWZMH5AKNTKCLP657YJANCNFSM4H7ROIPQ>
.
|
Although, it asks you for permission before you're logged in! |
@namangupta01 would you see if you could trigger it only on the dashboard? |
Hi Jeffrey! I guess there are some issues in directly calling browser
notification api on mobile devices.
…On Fri, 12 Jul 2019, 04:41 Jeffrey Warren, ***@***.***> wrote:
This worked!
[image: image]
<https://user-images.githubusercontent.com/24359/61091294-a159ea80-a40f-11e9-9c4e-915c51e63d45.png>
But not on my phone, for some reason? Chrome Android...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6003?email_source=notifications&email_token=AE6AEYONYGNGY5C5EPBSUPLP664ZPA5CNFSM4H7ROIP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZYHIYY#issuecomment-510686307>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE6AEYLT7EUUEWQLF56CSS3P664ZPANCNFSM4H7ROIPQ>
.
|
Will have to look into it.
…On Fri, 12 Jul 2019, 20:03 Naman Gupta, ***@***.***> wrote:
Hi Jeffrey! I guess there are some issues in directly calling browser
notification api on mobile devices.
On Fri, 12 Jul 2019, 04:41 Jeffrey Warren, ***@***.***>
wrote:
> This worked!
>
> [image: image]
> <https://user-images.githubusercontent.com/24359/61091294-a159ea80-a40f-11e9-9c4e-915c51e63d45.png>
>
> But not on my phone, for some reason? Chrome Android...
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#6003?email_source=notifications&email_token=AE6AEYONYGNGY5C5EPBSUPLP664ZPA5CNFSM4H7ROIP2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZYHIYY#issuecomment-510686307>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AE6AEYLT7EUUEWQLF56CSS3P664ZPANCNFSM4H7ROIPQ>
> .
>
|
* Fixed notification permission prompt * Minor Change * Moved notification prompt code from application.js to cable.js
Fix for #5972.