Skip to content
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

Compatibility with Chrome <= 69 (default WebView on Android <= 9.0) #2453

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

lrq3000
Copy link
Contributor

@lrq3000 lrq3000 commented Feb 5, 2023

Description

Add a polyfill in src/polyfills.ts for compatibility with Chrome <= 69 (default WebView on Android <= 9.0). This bug also happens with desktop versions of Chrome, not only mobile.

In practice, this PR adds compatibility for Android 9.0 and 8.1 out of the box (whereas before, only Android 10+ were compatible out of the box, without updating Chrome first). This PR does not change anything for Android 6.0+ with an updated Chrome browser, as updating Chrome always restore compatibility with super-productivity (tested on Android 7.0+ in AVD emulator, could not test Android 6.0 because of a lack of Play Store but it should be the same).

Issues Resolved

Fixes #2451, fixes johannesjo/super-productivity-android#34 .

Check List

Tested on (AVD emulator, default Chrome browser):

  • Android 9.0
  • Android 8.1 - SUCCESS (Chrome v61.0.3163.98)
  • Android 8.0 - FAIL with default browser (Chrome v58, no error but silent infinite loading on quote of the day screen)
  • Android 7.1 - FAIL (same as Android 8.0)
  • Android 7.0 - FAIL (same as Android 8.0)
  • Android 6.0 (SDK API 23, minimum targeted SDK version by super-productivity-android app) - FAIL (same as Android 8.0)
  • Android 10
  • Android 11
  • Android 13

Note that updating Chrome allows super-productivity alone or combined with super-productivity-android to work on all older Android versions, the failure above are only with the default Chrome version as supplied with the older Android release.

… 9.0), fixes johannesjo#2451

Signed-off-by: Stephen L. <lrq3000@gmail.com>
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello there lrq3000! 👋

Thank you and congrats 🎉 for opening your first PR on this project! ✨ 💖

We will try to review it soon!

@lrq3000 lrq3000 changed the title Compatibility with Chrome mobile <= 69 (default WebView on Android <= 9.0) Compatibility with Chrome <= 69 (default WebView on Android <= 9.0) Feb 5, 2023
@lrq3000
Copy link
Contributor Author

lrq3000 commented Feb 5, 2023

With older Chrome versions, super-productivity fails silently in an infinite loop. This is confirmed using Desktop Chrome v52 or Mobile Chrome v58 (Android 8.0). Uncommenting all default polyfills.ts does not help. Nothing is shown in the console.

To get the binaries to test an older Chrome version, search a build here:

https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html

I used build 390249 (corresponds to a v52 branch release).

So this PR is still useful to increase compatibility with older browsers but not all older browsers.

@lrq3000
Copy link
Contributor Author

lrq3000 commented Feb 5, 2023

Incidentally found a fix for johannesjo/super-productivity-android#34 , now ng serve --host 0.0.0.0 --watch works as-is, no need for custom commands, and loading is fast. Works both inside and outside the AVD emulator.

/EDIT: I thought so but it ended up being a false positive, the bug is not fixed, I rollbacked the unnecessary change.

@lrq3000
Copy link
Contributor Author

lrq3000 commented Feb 5, 2023

All done. PR ready to be merged.

@johannesjo
Copy link
Owner

Thank you very much once more!! I'm alright with ditching support for android versions 8 and below. The market share is not that huge and we have to focus our limited resources :)

@johannesjo johannesjo merged commit 08bc19d into johannesjo:master Feb 6, 2023
@lrq3000
Copy link
Contributor Author

lrq3000 commented Feb 6, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants