Skip to content

[question]: Adding OneSignal dependency causing Activity Reload on Android 13 #1703

@themeink

Description

@themeink

How can we help?

I have implemented OneSignal in my app which is causing the Launch Activity to reload on the very first App Launch. I even removed the OneSignal initialization code and found out that just adding the OneSignal dependency in app's build.gradle is causing the issue. The weird thing is that it happens on the very first app launch and not on subsequent launches.

On investigation, I found out that some Configuration change is happening which is causing the activity to reload. By Overriding OnPause method of apps Launch Activity and calling getChangingConfigurations(); I got the int value of the config that has changed to -2147483648 . On further investigation, I found out that the said constant value relates to SIGNAL_STRENGTH_UNSPECIFIED which can be found out HERE . Now I am out of ideas how to fix it. Any help is appreciated. TIA

Here is the complete Log

LOG

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions