Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential issues with solar and wind layers on Android devices #6327

Open
madsnedergaard opened this issue Jan 8, 2024 · 2 comments
Open

Comments

@madsnedergaard
Copy link
Member

madsnedergaard commented Jan 8, 2024

Describe the bug
We are getting reports that the solar and wind layers does not work on certain Android devices.

To be understood

  • Is this happening on the web and/or native app?
  • Are all Android devices affected?
  • If not, what are the common denominators - is it hardware or software?

Reported devices

  • Samsung Galaxy A71 - Android 13, Native app, V1.89.0
  • Pixel 5, ???

If anyone can reproduce this on their own device, we'd appreciate more details! 🙏

@madsnedergaard madsnedergaard changed the title Issues with solar and wind layers on Android devices Potential issues with solar and wind layers on Android devices Jan 8, 2024
@jgaye
Copy link

jgaye commented Jan 22, 2024

Hello @madsnedergaard ,
I can reproduce a blacking of the screen when activating the solar layer on my OnePLus 8 Pro Android 13.
This is happening on the web app, I haven't tested the native app yet.
Edit: I have the exact same behavior on the native app.
Here is a recording of the issue occurring on the web app.
https://github.com/electricitymaps/electricitymaps-contrib/assets/4049458/c5bf5f5e-7b4d-41b7-84cc-fce0b49a44ac

Attached is the specs of my Android device:

Let me know if you need more information.

@jgaye
Copy link

jgaye commented Jan 31, 2024

I was trying to run the Android app on my machine with Visual Studio to see if I can reproduce this issue on specific Android virtual devices, and debug it. It could use help to successfully run the app though 😅 .

I got as far as being able to run the mockserver and the web app successfully on my machine.
Then, following the readme I'm able to prepare and run the app on a virtual device, but after startup I get a white screen. I have different errors depending on the android API version I'm using so it's hard to identify the real blocker here.

As a starting point, on API 29 (Q) I get this error (paraphrasing): unexpected symbol ? on line 1 for asset index-3e4eb939.js. I did check that file and the js in there looks correct. So it might be an issue when the assets are exported from the web to the android folder.

FYI I'm on an Ubuntu 22.04 machine, and the readme seems to indicate that most contributors use mac, so that might be part of the reason.

If someone can help me run this, I think I can identify the issue and make an MR. Can you help me with that @madsnedergaard ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants