Skip to content

[Bug]: NullReferenceException at OneSignalSDK.OneSignalAndroid.get_PushSubscriptionState on Android #618

@oliverebert

Description

@oliverebert

What happened?

Some of our users with Android 13 get this error:

Non-fatal Exception: java.lang.Exception: NullReferenceException : Object reference not set to an instance of an object.
at OneSignalSDK.OneSignalAndroid.get_PushSubscriptionState(OneSignalSDK.OneSignalAndroid)

Steps to reproduce?

Happens sometimes with Android 13 devices

What did you expect to happen?

no NullReferenceException.

Unity version

2021.3.24f1

OneSignal Unity SDK version

3.0.7

Platform

Android

Relevant log output

Non-fatal Exception: java.lang.Exception: NullReferenceException : Object reference not set to an instance of an object.
       at OneSignalSDK.OneSignalAndroid.get_PushSubscriptionState(OneSignalSDK.OneSignalAndroid)

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