Skip to content

ANR after app reopened from Background #597

@adrianambiclimate

Description

@adrianambiclimate

Description:

After the app has been in Background for long time and then reopen. ANR (executing service com.ambiclimate.remote.airconditioner/com.onesignal.SyncJobService) may happen on either of the below code:
OneSignal.setEmail(email);
OSPermissionSubscriptionState status = OneSignal.getPermissionSubscriptionState();

Using version 3.9.0 - 3.9.2 have this problem. Seems don't have this problem when I downgrade to to 3.8.4

Environment

  1. What version of the Android SDK are you using?
    compileSdkVersion 27
    buildToolsVersion '27.0.3'
    minSdkVersion 16
    targetSdkVersion 27

Onesignal SDK: 3.9.0 - 3.9.2

  1. How did you add the SDK to your project (eg. maven)
    maven

  2. Phone Android version:
    ANR reported for Android >= 6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions