+ 26
Why some friends can not see my code ?
My code is this: https://code.sololearn.com/WmMqD3r1j60J/?ref=app
31 odpowiedzi
+ 15
Google freezes Chromium Webview (that's the component containing the JavaScript engine that renders web codes) at some last-supported version.
If a mobile does not also pull in WebView on app updates, you have the latest supported version--that's the engine you get.
Workarounds include:
~ only use ES5 syntax, or detect the user agent and deliver the proper script version
~ use custom <script type=""> tags to separate ES5/6 code into blocks you manage
~ use the babel transpiler
~ polyfill non-syntax differences features (like array.splice)
Babel samples can be found in CodePlayground:
https://code.sololearn.com/WhJVO59gYZMH/?ref=app
https://code.sololearn.com/WL4QrKP4we6A/?ref=app
Check webview version (useful for https://caniuse.com):
https://code.sololearn.com/WeBKGPjY0UHK/?ref=app
+ 31
In My Phone I Can't See Your Code Result Too!
I Don't Know The Reason!!
I Wonder if I Find It Out!!!
+ 27
KrOW Bro Thanks Alot Dear :)
+ 18
Kirk Schafer do you know how Jason M.Azizi can updated to see my code ?
+ 17
Thank you so much Kirk Schafer
+ 15
Why one phone works and the other does not ?
+ 14
Emma but on my smartphone, this works perfectly.
+ 13
Emma Thanks for sharing this printscreen.
+ 12
I have a new problem.
Seb TheS can see chess code but can not see Strawberry code.
https://code.sololearn.com/WYlh2W9zZ2Ol/?ref=app
I'm trying something like old P5 sounds library , but no effect. 😧😨
I'll give up.
+ 11
I changed to previous version P5 (0.6.1)
David Carroll Jason M.Azizi Please Try this:
https://code.sololearn.com/WIEK8dlC5Rbd/?ref=app
+ 10
I tried to comment // console function but @SKIZZLES can not see this code again.
+ 10
[note, GPU blacklists] If anyone thinks they might be getting a WebGL error I can link the Chromium GPU blacklist, and a statement on missing features that causes webview to auto-blacklist your configuration, even when a browser normally works with WebGL in your configuration.
I can also include a couple test pages that detect WebGL blacklisting in a meta sort of way (they report it's there...but seemingly disabled).
+ 9
They probably have older JavaScript engines. Mine, for example, was distributed before ES6 was adopted so I cannot parse this line:
console.log=()=>{};
Arrow functions are syntax errors on my device; syntax errors crash the lexer (or parser) so no script in that block runs (script in other blocks will run).
+ 9
So he have to re organise some function for older device?
Kirk Schafer
But even though they have updated solo-in app browser
+ 9
There's not enough information there for me to guess and I don't want to start a hardware troubleshooting side-thread here.
Whatever the exact details are, the solutions are likely to be in this set:
~ Try getting the latest Google Play / SoloLearn app update
~ Downgrade all ES6 code to ES5 (either of you; this is a coding site after all!)
~ Change no ES6 code; instead add the Babel transpiler trick from the demo code linked before
~ Try visiting the code from a browser outside the app (their web components are usually more robust / updated longer)
~ Use a different mobile
+ 9
Pedro H.J That new update loads in SoloLearn app for me now.
Prior to the change it loaded in mobile Chrome Browser. So... yeah... I'm now in full agreement with Kirk Schafer. 👌
+ 8
It works fine in my smartphone!
+ 8
ⓈⓀⒾⓏⓏⓁⒺⓈ You...are a special case. Your webview supports some of these features in "transitional-ES6" mode, which is a bit more rare here (mine's that way, but my strict mode is not as far along as yours, so I still can't use arrow functions).
The command referred to here is:
'use strict'; // first line of any JS
This changes the behavior of 'transitional" engines (with SOME ES6 features) + requires variable declaration.
IMHO, this is an edge case fix only (Babel will enable it as part of its compatibility transpilation though).
+ 7
Maybe there's a error in the code
+ 7
Because they're not your true friends. You inadvertently created a friendship tester. Only your *real* friends can see this code!