+ 8

What should I do to make ES6 syntax work on my phone?

Is there a way to make my phone understand ES6 syntax so that I can run codes with new syntax in Code Playground? My phone is running on android 4.4.2 so I can't update System Webview. What are the other viable options that I can do?

28th Feb 2018, 1:24 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
9 Answers
+ 13
You simply can't do that. But you can try to use Custom tabs with chromer app(it may not work for you). just share the code link to it. It will open in a custom tab (assuming chrome or Firefox is installed and set as provider in that app). Custom tabs are lightweight compared to loading the full browser. That's the best you can do. Apart from that you can upgrade your android via installing a custom rom(use a search engine for more info). # chromer app link https://play.google.com/store/apps/details?id=arun.com.chromer
28th Feb 2018, 2:36 PM
Lord Krishna
Lord Krishna - avatar
+ 17
Ask sololearn if custom chrome tabs can be used. (I don't know which Android versions support it )
28th Feb 2018, 2:01 PM
Swapnil Srivastava
Swapnil Srivastava - avatar
+ 9
You can install chrome or firefox on your mobile and run codes in them (use share link option).
28th Feb 2018, 1:42 PM
Lord Krishna
Lord Krishna - avatar
+ 4
Great! It's working! Thanks Lord Krishna. Way better than copy paste.
28th Feb 2018, 3:11 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 4
to change webview provider first enable android developer options and then change the web view implementation https://www.chromium.org/developers/androidwebview/android-webview-beta
6th Mar 2018, 6:26 AM
Morpheus
Morpheus - avatar
+ 4
@Jonathan for version M or below as shown in in the link can join the beta app on playstore https://play.google.com/apps/testing/com.google.android.webview
6th Mar 2018, 7:20 AM
Morpheus
Morpheus - avatar
+ 3
@Morpheus, unfortunately, I think that only works on Android Nougat and above.
6th Mar 2018, 6:45 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 2
I know about chrome(I forgot to mention). It's the one I use to view ES6 codes. But that's on a browser. Is there a way to somehow set it as 'system browser' so I can use that functionality and view codes in-app?
28th Feb 2018, 1:49 PM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 2
@Morpheus, I have tried to download the beta version but it says my device isn't compatible with the version.
6th Mar 2018, 8:11 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar