+ 1

Hi eweryone, I cannot run ES6 code in my SoloLearn app. Does it depend on my device or the version of SoloLearn application ?

17th Dec 2018, 4:09 AM
Bakhtiyor Sulaymonov
Bakhtiyor Sulaymonov - avatar
3 odpowiedzi
+ 4
Like Kishalaya Saha said, all depends by your device which use a special component for process web codes (WebView in android). Unfortunatly, this component is not easly updable at system level on old devices then you have few choices for run ES6 codes on your device: 1) Transform, where possible, all code to ES5 2) Use a browser with ES6 support like Firefox on Android for run it (it use a custom component for run web codes) 3) Edit slightly the code using babel like discussed here https://www.sololearn.com/discuss/1220172/?ref=app
17th Dec 2018, 4:38 AM
KrOW
KrOW - avatar
+ 6
It depends on the device and not the version of the app. Web codes are run using your phone's android system webview (or its equivalent in iOS). That's why you'd find that a web code, after you've opened it, runs even without the Internet, while other codes rely on Internet connection for both loading and running. Hope that helps 😊
17th Dec 2018, 4:19 AM
Kishalaya Saha
Kishalaya Saha - avatar
+ 4
Note, updating SoloLearn will pull in the latest Webview *if an update is available* for your mobile. Once your mobile is old enough, Chromium webview is frozen except for *major* security problems.
17th Dec 2018, 4:39 AM
Kirk Schafer
Kirk Schafer - avatar