SamsungInternet / support

For general Samsung Internet support. You can use the Issues register here as a way to ask support questions.
MIT License
17 stars 0 forks source link

Incorrect navigator.onLine with installed web apps #20

Closed pierredewilde closed 5 years ago

pierredewilde commented 7 years ago

With both Samsung Internet release version (5.4.02.3) and Beta version (6.2.01.7), navigator.onLine works as expected until you install the web app on mobile via Add to Home screen.

When the web app is installed on the mobile, navigator.onLine does not change when the connection is broken or reestablished.

A possible workaround is to run another instance of Samsung Internetbrowser: in that case, navigator.onLine works again as expected.

Tested on Samsung Galaxy A5 2016 with Android 7.0

poshaughnessy commented 7 years ago

Thank you for reporting this @pierredewilde. I've raised this internally and we will follow up!

pierredewilde commented 6 years ago

window online and offline events are not fired:

window.addEventListener('online', function() {
  console.log('online');
}, true);
window.addEventListener('offline', function() {
  console.log('offline');
}, true);