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

No logo when open app from widget #440

Closed
pnthach95 opened this issue Apr 5, 2023 · 3 comments
Closed

No logo when open app from widget #440

pnthach95 opened this issue Apr 5, 2023 · 3 comments
Assignees
Labels
duplicate This issue or pull request already exists

Comments

@pnthach95
Copy link

Bug summary

React Native Android Widget just released new version that supports open app from widget. If app is opened from widget, splash screen doesn't have logo.

Screen_Recording_20230405_131504_Karthuria.mp4

Library version

4.5.3

Environment info

System:
    OS: macOS 13.3
    CPU: (8) arm64 Apple M1
    Memory: 76.13 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 16.19.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 8.19.3 - /usr/local/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.3 - /Users/pnthach/.rvm/gems/ruby-2.7.5/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.4, iOS 16.4, macOS 13.3, tvOS 16.4, watchOS 9.4
    Android SDK:
      API Levels: 28, 29, 30, 31, 32, 33
      Build Tools: 28.0.3, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 33.0.0
      System Images: android-29 | Google Play ARM 64 v8a, android-30 | Google APIs ARM 64 v8a, android-31 | Google Play ARM 64 v8a, android-32 | Google APIs ARM 64 v8a
      Android NDK: Not Found
  IDEs:
    Android Studio: 2022.1 AI-221.6008.13.2211.9619390
    Xcode: 14.3/14E222b - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.18 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.1.0 => 18.1.0 
    react-native: 0.71.6 => 0.71.6 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

  1. Clone, install dependencies, run project
  2. Add widget to home screen
  3. Press widget to get data
  4. After finish loading, kill app
  5. Press widget to open app

Reproducible sample code

https://github.com/pnthach95/KarthuriaApp
@pnthach95 pnthach95 added the bug Something isn't working label Apr 5, 2023
@zoontek
Copy link
Owner

zoontek commented Apr 5, 2023

Duplicate of #408 (and others)

In the README, I mentioned:

⚠️ On Android >= 12, the splash screen will not appear if you start your app from the terminal / Android Studio. To see it, kill your app and restart it in normal conditions (tap on your app icon in the app launcher).

But the issue is bigger than that. Android 12 will not show the splash screen when the app is opened though an intent (Android studio, CLI, notifications, widgets, some custom app drawer). If I remember correctly, they fixed it on Android 13 (but don't give a sh*t about fixing it on Android 12…because Google 😕)

Related:

I'm currently working on a new version of this library that get rid of androidx.core:core-splashscreen in order to solve these kind of pains (but keep Android 12+ SplashScreen API compat…there's a trick)

@zoontek zoontek added duplicate This issue or pull request already exists and removed bug Something isn't working labels Apr 5, 2023
@zoontek
Copy link
Owner

zoontek commented Aug 8, 2023

It should be fixed with #475

@pnthach95
Copy link
Author

I confirmed v5 fixed issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants