OneSignal / react-native-onesignal

React Native Library for OneSignal Push Notifications Service
Other
1.57k stars 374 forks source link

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

Open mikemonaco opened 3 months ago

mikemonaco commented 3 months ago

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?

Relevant log output

No response

Code of Conduct

mikemonaco commented 3 months ago

Below is a screenshot showing this issue:

Screenshot 2024-06-17 at 1 12 26 PM

rgomezp commented 1 month ago

Howdy Mike, Thanks for your patience. This is reproducible and we are investigating.

mikemonaco commented 2 weeks ago

@rgomezp wanted to check in on the status of this, thanks.