Closed ScottWaring closed 3 years ago
https://github.com/dpa99c/cordova-diagnostic-plugin/pull/429 Created this PR
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Bug report
CHECKLIST
[x ] I have read the issue reporting guidelines
[ x] I confirm this is a suspected bug or issue that will affect other users
[ x] I have reproduced the issue using the example project or provided the necessary information to reproduce the issue.
[x ] I have read the documentation thoroughly and it does not help solve my issue.
[ x] I have checked that no similar issues (open or closed) already exist.
Current behavior:
Cold restart closes the app but does not reopen the app in Android 10, leaving the viewer on the home screen. Testing on Android 9 and lower cold restart behaves as desired. Warm restart behaves as desired on Android 10.
Expected behavior:
Cold restart is desired to close then reopen app.
Steps to reproduce:
Programatically hit this function
cordova.plugins.diagnostic.restart(onError, true);
Environment information
10.15.7
Runtime issue
Pixel 3a XL
Android 10
Android build issue:
10.15.1
6.2.2
29
Console output
No Output
**** UPDATE Updating this block in
doColdRestart
resolves the issue for me, works on 7 - 10 (the versions available for me to test on)