Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove browser notification polyfill and inform user when unsupported #709

Merged
merged 1 commit into from
Oct 22, 2016

Conversation

astorije
Copy link
Member

@astorije astorije commented Oct 20, 2016

Our polyfill is not really a polyfill in the sense that it does not bring similar functionality: it mostly makes the page title blink. I don't even know if that works properly as I haven't seen it in action even once.
I think we should be more explicit than that: if browser supports it, good, use notifications, otherwise, let user know it's not supported and don't try alternative techniques.

According to caniuse.com, we should test this on:

  • IE 11
  • Edge 13
  • iOS Safari 9
  • iOS Safari 10
  • Opera Mini (though I don't know how well we do there)
  • Android

Help welcome with testing.
The testing goal is simply to make sure the app overall works fine apart from notifications in these environments, and that it displays the warning when not supported (though on Chrome for Android for example, it pretends it's supported, even makes the permission request, but no notifications show up...).

Result

screen shot 2016-10-20 at 00 43 46

@astorije astorije added Type: Feature Tickets that describe a desired feature or PRs that add them to the project. help wanted labels Oct 20, 2016
@MaxLeiter
Copy link
Member

Im running a public version of this PR temporarily for easy testing here: http://avatar.playat.ch:3000/

@astorije
Copy link
Member Author

Thanks a lot, @MaxLeiter!

@xPaw
Copy link
Member

xPaw commented Oct 21, 2016

Pretty sure there needs to be a check so that notifications can't be created if the api doesn't exist

@astorije
Copy link
Member Author

As far as I can tell, this is the only place where a Notification is created. It is not executed if options.desktopNotifications is false, which is its default value and never changes when "Notification" in window is false (because the checkbox is disabled).

@xPaw
Copy link
Member

xPaw commented Oct 21, 2016

I'm thinking there could be potential problem where the option was previously enabled (old version where there was no check, or polyfill removal)

@astorije astorije force-pushed the astorije/rm-notification-poyfill branch 2 times, most recently from 3880f81 to 41ba02d Compare October 22, 2016 21:04
@astorije astorije force-pushed the astorije/rm-notification-poyfill branch from ab6cc01 to d82a894 Compare October 22, 2016 21:26
@xPaw xPaw added this to the 2.2.0 milestone Oct 22, 2016
@astorije astorije merged commit dba885b into master Oct 22, 2016
@astorije astorije deleted the astorije/rm-notification-poyfill branch October 22, 2016 21:36
matburnham pushed a commit to matburnham/lounge that referenced this pull request Sep 6, 2017
…ion-poyfill

Remove browser notification polyfill and inform user when unsupported
@xPaw xPaw removed their assignment Mar 12, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Type: Feature Tickets that describe a desired feature or PRs that add them to the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants