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

AppState blur & focus events don't work on Android #20088

Open
eightyfive opened this issue Nov 17, 2022 · 2 comments
Open

AppState blur & focus events don't work on Android #20088

eightyfive opened this issue Nov 17, 2022 · 2 comments
Labels
Expo Go The client distributed on app stores Issue accepted

Comments

@eightyfive
Copy link

Summary

The standard React Native AppState blur & focus don't work in Expo.

Related issue:
#16113

What platform(s) does this occur on?

Android

Environment

expo-env-info 1.0.5 environment info:
    System:
      OS: macOS 12.6
      Shell: 5.8.1 - /bin/zsh
    Binaries:
      Node: 17.6.0 - /opt/homebrew/bin/node
      Yarn: 3.1.1 - /opt/homebrew/bin/yarn
      npm: 8.5.1 - /opt/homebrew/bin/npm
    SDKs:
      iOS SDK:
        Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1
    IDEs:
      Android Studio: 2021.3 AI-213.7172.25.2113.9014738
      Xcode: 14.1/14B47b - /usr/bin/xcodebuild
    npmPackages:
      babel-preset-expo: ~9.1.0 => 9.1.0 
      expo: ^45.0.0 => 45.0.8 
      react: link:../../node_modules/react => 17.0.2 
      react-dom: link:../../node_modules/react-dom => 17.0.2 
      react-native: 0.68.2 => 0.68.2 
      react-native-web: 0.17.7 => 0.17.7 
    Expo Workflow: managed

Minimal reproducible example

https://snack.expo.dev/@eightyfive/ranting-truffles

As you can see, if you press the □ Android OS button, the app goes into the "Tray view" but does not display "BLURRED".

Alternatively you can try to pull down the "Wifi settings" from the top of the phone screen, "BLURRED" is still not displayed.

@eightyfive eightyfive added the needs validation Issue needs to be validated label Nov 17, 2022
@brentvatne
Copy link
Member

I can confirm that this is not working as expected in Expo Go however it does work properly in development builds - I'd suggest migrating to development builds from Expo Go :) https://docs.expo.dev/development/introduction/

@brentvatne brentvatne added Expo Go The client distributed on app stores Issue accepted and removed needs validation Issue needs to be validated labels Nov 25, 2022
@expo-bot
Copy link
Collaborator

Thank you for filing this issue!
This comment acknowledges we believe this may be a bug and there’s enough information to investigate it.
However, we can’t promise any sort of timeline for resolution. We prioritize issues based on severity, breadth of impact, and alignment with our roadmap. If you’d like to help move it more quickly, you can continue to investigate it more deeply and/or you can open a pull request that fixes the cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Expo Go The client distributed on app stores Issue accepted
Projects
None yet
Development

No branches or pull requests

3 participants