tidev / titanium-sdk

🚀 Native iOS and Android Apps with JavaScript
https://titaniumsdk.com/
Other
2.76k stars 1.21k forks source link

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

Open Informate opened 2 months ago

Informate commented 2 months ago

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

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:

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

Expected Behavior

Works normally.

Actual behavior

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

m1ga commented 2 months ago

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 :)

Informate commented 2 months ago

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