-
-
Notifications
You must be signed in to change notification settings - Fork 276
Description
Bug summary
Hi π This is not exactly a bug, the library works fine for me π But we just received a compatibility warning on Google Play Store, and I would like to know wether I should worry or not, before pushing the library update in production!
We updated the lib one month ago to version 5.0.2 (before we used 3.2.5 - made the update along the update to react-native 0.72.4) ; splashscreen was working fine in staging ; yesterday we pre-submitted the app on the Play Store, and received the warning:
"Android compatibility issues
Double splash screen
Warning : The crawler detected a blank loading screen or a custom splash screen that is shown in your app after the system splash screen. Users launching your app on Android 12 or higher will see two splash screens.
I tested on Android 12 and 13 and I do not see a double splash screen, can we just ignore the warning by google? is it because Android do not identify the polyfill used in version 5 of the lib?... We read the Release note!
Hope this would help other people who might receive the same warning!
Library version
5.0.2
Environment info
System:
OS: macOS 13.4.1
CPU: (10) arm64 Apple M2 Pro
Memory: 190.25 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 16.19.1
path: ~/Library/Caches/fnm_multishells/1057_1697009980395/bin/node
Yarn:
version: 1.22.19
path: /opt/homebrew/bin/yarn
npm:
version: 8.19.3
path: ~/Library/Caches/fnm_multishells/1057_1697009980395/bin/npm
Watchman:
version: 2023.03.20.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods: Not Found
SDKs:
iOS SDK:
Platforms:
- DriverKit 22.4
- iOS 16.4
- macOS 13.3
- tvOS 16.4
- watchOS 9.4
Android SDK: Not Found
IDEs:
Android Studio: 2022.1 AI-221.6008.13.2211.9514443
Xcode:
version: 14.3/14E222b
path: /usr/bin/xcodebuild
Languages:
Java:
version: 11.0.18
path: /opt/homebrew/opt/openjdk@11/bin/javac
Ruby:
version: 3.1.0
path: /Users/delphinebugner/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.72.4
wanted: 0.72.4
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
Steps to reproduce
- Android Only
- Device used by google in its test:
- Not reproduced locally (example of devices used : V2027 x Android 12 / Xiaomi 11 x Android 13)
Reproducible sample code
// MainActivity.java -> iso doc
// @splashscreen - see https://github.com/zoontek/react-native-bootsplash/blob/4.7.5/README.md
@Override
protected void onCreate(Bundle savedInstanceState) {
RNBootSplash.init(this, R.style.BootTheme); // β¬
οΈ initialize the splash screen
super.onCreate(null); // null because we use react-native-screens
}
// styles.xml -> iso doc
<resources>
<!-- Base application theme. For video player theme needs to be coming from material components-->
<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="android:editTextBackground">@drawable/rn_edit_text_material</item>
<item name="android:statusBarColor">@color/bootsplash_background</item>
</style>
<!-- BootTheme should inherit from Theme.BootSplash or Theme.BootSplash.EdgeToEdge -->
<style name="BootTheme" parent="Theme.BootSplash.EdgeToEdge">
<item name="bootSplashBackground">@color/bootsplash_background</item>
<item name="bootSplashLogo">@drawable/bootsplash_logo</item>
<item name="bootSplashBrand">@drawable/bootsplash_brand</item>
<item name="postBootSplashTheme">@style/AppTheme</item>
</style>
</resources>
// AndroidManifest -> iso doc
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="@style/BootTheme"
tools:replace="android:allowBackup"
android:networkSecurityConfig="@xml/network_security_config">