Skip to content

[Bug]: Erroneous "Usage Duration" for Android subscriptions in SDK 5.2.0 #1715

@mikemonaco

Description

@mikemonaco

What happened?

When using react-native-onesignal SDK 5.2.0 (and possibly other 5.X.X version), the OneSignal dashboard is reporting a usage duration of "100000000" seconds by default for Android subscriptions. Usage duration seems to accrue normally from there (ie. 100000065, after 65 seconds of usage). This issue does not appear to be happening on iOS.

Steps to reproduce?

1. Install and configure react-native-onesignal SDK 5.2.0
2. Run react native app on Android
3. Login to https://dashboard.onesignal.com/login
4. Select your app
5. Navigate to Audience > Subscriptions
6. Observe value in "Usage Duration", you may need to launch and close the app a few times, or wait a few minutes for this value to populate.

What did you expect to happen?

I expect the usage duration to start accuring from 0 seconds instead of 100000000 seconds.

React Native OneSignal SDK version

5.2.0

Which platform(s) are affected?

  • iOS
  • Android

Relevant log output

No response

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    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