RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.05k stars 10.33k forks source link

Compatibility Issue: Rocket Web Not Supported on Android 9 Native WebView #33206

Open johnzgit opened 1 week ago

johnzgit commented 1 week ago

Description:

When using Rocket Web, it has been observed that the application does not function correctly on devices running Android 9 with the native WebView. The issue seems to stem from the Meteor-compiled code, which includes optional chaining syntax such as XX?.XX. This syntax is not supported in the native WebView of Android 9, causing the web page to fail to load or function properly.

Steps to Reproduce:

1.  Use a device or emulator running Android 9 with the native WebView.
2.  Open Rocket Web and attempt to load any page.
3.  The page fails to load correctly, and the console shows errors related to the XX?.XX syntax.

Expected Behavior:

Rocket Web should be compatible with the native WebView of Android 9, allowing pages to load and function as expected.

Possible Solution:

The compiled Meteor code should avoid using optional chaining syntax (e.g., XX?.XX) or be transpiled to a more widely compatible version of JavaScript that works in older WebView environments. Implementing a polyfill or adjusting the build process to ensure compatibility with Android 9’s WebView could resolve this issue.

Device and Environment:

•   Device: Running Android 9
•   Browser: Native WebView
•   Rocket Web Version: 6.4.0~6.11.2

Additional Information:

Ensuring backward compatibility by either removing or transpiling optional chaining syntax could significantly improve support for older devices, specifically those using Android 9 and its native WebView.

reetp commented 1 week ago

Running Android 9

EOL was around 01 Jan 2022 so Pie/9 is no longer supported by Google and as a result I am not sure this will get fixed.

Note that Rocket and Meteor are about to have a big upgrade which make it even more unlikely it will get fixed.