erisu commented on issue #1775: URL: https://github.com/apache/cordova-android/issues/1775#issuecomment-2777546307
I am not sure if it is necessary to fix this behavior. It is only visible when using the `cordova run` command, and I don’t think it causes any issues. It doesn't exist in production. I investigated where this behavior originates and found [this line of code](https://github.com/apache/cordova-android/blob/master/lib/target.js#L168-L169). I couldn't find any associated ticket or PR that explains the reasoning behind adding this code, other than the comment suggesting it is for the purpose of "unlocking the device." Perhaps, when the emulator or device idles, the screen powers off, preventing the app from launching, so it needed a long press first? Maybe this code could be removed, but I am unsure what edge case it was meant to support. It also appears that the original code was added on June 19, 2013. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org