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

[Bug]: In-App Popup Not Displaying After Being Closed with Back Press #2247

Open
1 task done
KirillBorodin opened this issue Jan 27, 2025 · 1 comment
Open
1 task done

Comments

@KirillBorodin
Copy link

KirillBorodin commented Jan 27, 2025

What happened?

It seems that issue #1826 is still reproducible in Release 5.1.26

From the source code investigation, it appears that the OneSignal Android SDK is attached to the consumer’s app activity where the plugin is used. Consequently, managing the activity’s onBackPressed behavior falls outside the plugin’s scope. Furthermore, when the plugin is initialized in a Flutter app, onBackPressed cannot be properly handled to dismiss the In-App Message due to the specific communication mechanisms between Android and Flutter (method channels).

See issue example:

Screen.Recording.2025-01-27.at.11.44.43.mov

Steps to reproduce?

1. Tap on the In-App Message to trigger it.
2. Wait for the popup to be displayed.
3. Close the popup by pressing the Android back button.
4. Attempt to trigger the In-App Message again by tapping on it.

What did you expect to happen?

The In-App Message should open every time it is clicked.

OneSignal Android SDK version

Release 5.1.26

Android version

12

Specific Android models

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct
@nan-li
Copy link
Contributor

nan-li commented Jan 30, 2025

Hi @KirillBorodin, thanks for reporting.

My apologies, you are correct and this behavior is still happening. The previous issue was incorrectly closed.

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

2 participants