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

Android: application startup problems while the phone is in sleep mode (Display off) #14097

Open
1 task done
Informate opened this issue Aug 28, 2024 · 2 comments
Open
1 task done
Labels
android bug needs triage This issue hasn't been reviewed by maintainers

Comments

@Informate
Copy link

Informate commented Aug 28, 2024

I have searched and made sure there are no existing issues for the issue I am filing

  • I have searched the existing issues

Description

When the application is started while the device is not active, specifically the screen has turned off and the phone has locked, some features of the application will not work properly.
This particular case happens, for example, when the application is launched (from a Mac device) through the command:

  ti build -p android --target device --device-id all

and the phone connected through the USB cable has entered idle mode due to inactivity.

In detail:

  • Unbundled services do not start (especially on Android API 34).
  • Some webviews using chart.js may return an error in the JS.
  • Probably due to other errors in the code, the main app window sometimes does not open, and the application gets stuck on the splash screen.
  • Also HTTPClient could rise some error:
    [ERROR] failed to connect to [Server URL] (port 443) from [/YOUR IP] (port 56645) after 5000ms [-1] (0 - null)
    [ERROR] Unable to resolve host [Server URL]: No address associated with hostname [-1] (0 - null)

I am unable to provide more specific information at this time.

Expected Behavior

Works normally.

Actual behavior

  • Unbundled services do not start (especially on Android API 34).
  • Some webviews using chart.js may return an error in the JS.
  • Probably due to other errors in the code, the main app window sometimes does not open, and the application gets stuck on the splash screen.
  • Also HTTPClient could rise some error:
    [ERROR] failed to connect to [Server URL] (port 443) from [/YOUR IP] (port 56645) after 5000ms [-1] (0 - null)
    [ERROR] Unable to resolve host [Server URL]: No address associated with hostname [-1] (0 - null)

Reproducible sample

X

Steps to reproduce

X

Platform

Android

SDK version you are using

12.4.0.GA

Alloy version you are using

No response

@Informate Informate added bug needs triage This issue hasn't been reviewed by maintainers labels Aug 28, 2024
@Informate Informate changed the title Android: application startup problems when the phone is in sleep mode (Display off) Android: application startup problems while the phone is in sleep mode (Display off) Aug 28, 2024
@m1ga
Copy link
Contributor

m1ga commented Aug 31, 2024

I guess that is not a high priority issue as it just happens when you launch the app with adb/build commands and the phone is in sleep mode. That is nothing that would happen with the actual app later on, right.

I quickly tested it with one bigger app I have here and I didn't see any issues starting a build while the phone is in sleep mode. I can see the logs and it even made API requests. When I wake up the phone and unlock it it will show the app and starts downloading images. I'm sure some stuff won't work that relies on focus or other events that might not fire when the phone is locked. But I wouldn't know how to debug that without waking up the phone :)

@m1ga m1ga added the android label Aug 31, 2024
@Informate
Copy link
Author

Yes, very very low priority! Just signaling the issues to let other know that this could happend!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android bug needs triage This issue hasn't been reviewed by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants