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

Splash Screen does not appear on first launch with Android 12 (cordova-android-11) #1481

Closed
3 tasks done
dtarnawsky opened this issue Aug 29, 2022 · 4 comments
Closed
3 tasks done

Comments

@dtarnawsky
Copy link

Bug Report

Problem

The Splash Screen does not appear on the first launch of a freshly installed app on an Android 12 device (it does appear afterward)

What is expected to happen?

The Splash Screen should appear on the first launch of a newly installed app.

What does actually happen?

The splash screen does not appear on the first launch (but appears with subsequent launches).

Information

This is using the new AndroidWindowSplashScreenAnimatedIcon preference in config.xml of Cordova Android 11.0.0.

Sample Project exhibiting the issue:
https://github.com/dtarnawsky/cs-cordova-android-11

Command or Code

cordova platform add android@11
cordova run android

Environment, Platform, Device

Tested and found as a problem with Samsung S10e and Nexus 5 API 31 (Android 12). Not an issue on Android 10 or Android 11.

Version information

Cordova CLI 11.0.0
Cordova Android 11.0.0
Plugins:
cordova-plugin-device: 2.1.0
cordova-plugin-ionic-keyboard: 2.2.0
cordova-plugin-ionic-webview: 5.0.0
cordova-plugin-statusbar: 3.0.0

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@fabriciovasc

This comment was marked as resolved.

@jcesarmobile
Copy link
Member

Sadly this is an Android 12 bug on the Splash Screen API itself and Google employees are not going to fix it for Android 12. They have fixed it for Android 13.
It affects all mobile frameworks (and pure native apps using no frameworks) and happens if you launch the app from Android Studio or CLI tooling such as Cordova CLI, native-run, adb, etc.
Doesn't happen when users launch the app from the app icon on their launches (as long as they are using the official android launcher, looks like there is also an issue when using 3rd party launchers)

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Aug 31, 2022
@dtarnawsky
Copy link
Author

Any reference to where Google are saying they will not fix the issue?

@jcesarmobile
Copy link
Member

This link is for a different Splash Screen bug, but they say that the fix won't be available for Android 12 because they are only doing security fixes for Android 12 and those issues are not security related.

https://issuetracker.google.com/issues/242118185#comment2

Some other links about Splash Screen issues on Android 12 and some of them mention that fixes for Android 13 or for the support library (which applies to Android <12) so fixes are coming to Android 13 or Android < 12, but not Android 12:

https://issuetracker.google.com/issues/205021357
https://issuetracker.google.com/issues/207386164
https://issuetracker.google.com/issues/216136037

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

No branches or pull requests

3 participants