I have an issue where my code isn't working on my android emulator, can someone take a look? HTML5/JS | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

I have an issue where my code isn't working on my android emulator, can someone take a look? HTML5/JS

It's a localStorage issue. Not sure how to get around it, any insight is much appreciated!

11th Feb 2018, 2:28 AM
Thomas Odom
Thomas Odom - avatar
4 Answers
+ 5
Great... Yup! Sounds like you found the issue. Potentially you may have to gzip / compress your coding to work better https://betterexplained.com/articles/how-to-optimize-your-site-with-gzip-compression/
11th Feb 2018, 3:16 AM
BroFar
BroFar - avatar
+ 1
if you have a dry template / page on say ex: http://all4webs.com you can paste your code and run to see it AND in a <textarea> you can display your code </textarea> only an idea
11th Feb 2018, 2:41 AM
BroFar
BroFar - avatar
+ 1
@Faisal, I think that you are right, however.... the game itself still functions in code playground when launched from PC, (just not the localstorage features). In android the functionality of the game itself is broken- at least in bluestacks emulator. @brofarops I have the code posted on the code playground here and it allows me to see the code in the text area on the left and run the code on the right. I'm wondering if maybe... is a way to omit the section causing the android error when viewed from android so that the game code itself still runs just without the storage segment?
11th Feb 2018, 3:05 AM
Thomas Odom
Thomas Odom - avatar
0
I think it may just be that the Sololearn code playground doesn't allow the user to save or load files into your device storage. Of course, I could be wrong, but that's just what seems to be happening.
11th Feb 2018, 2:31 AM
Faisal
Faisal - avatar