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

Display PIP view after app goes in background #7

Open
Shahfaisal-0304 opened this issue Nov 7, 2023 · 1 comment
Open

Display PIP view after app goes in background #7

Shahfaisal-0304 opened this issue Nov 7, 2023 · 1 comment

Comments

@Shahfaisal-0304
Copy link

I want to start PIP mode when the application moves to the background state. In some devices AppState's change listener reflects before the application fully moves to the background in those cases I'm able to start PIP mode but in Android 13 devices, the "change" listener reflects when the application completely moves to the background at that time PIP mode view is not getting visible.

@Shahfaisal-0304
Copy link
Author

I figured out the issue, If I update any state or dispatch action above PipHandler.enterPipMode the PiP view will not be visible on swipe mode.

Out of the topic:
If we use any library to display toast messages in the app, toast messages appear before PipHandler.enterPipMode will display in PIP View, to avoid this issue use ToastAndroid.

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

1 participant