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]: Slideup IAM is not automatically dismissed when a new activity is started #49

Open
danielardelean opened this issue Dec 18, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@danielardelean
Copy link

Braze Android SDK Version

33.1.0

Steps To Reproduce

Prerequisites:
• Configure an in-app messaging campaign that has a Slideup message type
• The in-app message is displayed on Activity A

Steps:

  1. Go to Activity B (without dismissing the IAM)

Expected Behavior

No in-app message is displayed on Activity B

Actual Incorrect Behavior

The in-app message is displayed on Activity B, and cannot be dismissed

Verbose Logs

No response

Additional Information

screen_recording.mp4
@danielardelean danielardelean added the bug Something isn't working label Dec 18, 2024
@danielardelean
Copy link
Author

Note:

  • Braze in-app message manager registration: Activity lifecycle callback integration

@radixdev
Copy link
Collaborator

Hi @danielardelean ,

I cannot reproduce with your instructions.

  1. What Android OS version was this seen on?
  2. What android model is that on?
  3. Can you share verbose logs from your video?
  4. Can you share any and all IAM customizations done in your app?
  5. Can you share a small, concise, sample app that reproduces the issue?

@danielardelean
Copy link
Author

Hello @radixdev,

  1. Android OS 15
  2. Pixel 7

I dug further and found that the problem occurs if the following function is called on onCreate of Activity B:

  private fun checkNotificationPermission() {
        if (Build.VERSION.SDK_INT >= 33) {
            ActivityCompat.requestPermissions(
                this,
                arrayOf(Manifest.permission.POST_NOTIFICATIONS),
                14
            )
        }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants