OneSignal / OneSignal-Flutter-SDK

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal
https://www.onesignal.com
Other
625 stars 214 forks source link

[Bug]: 5.0.x and later `Not Subscribed` users increase #826

Open yosuke-nakayama opened 10 months ago

yosuke-nakayama commented 10 months ago

What happened?

SDK 5.0.4

Steps to reproduce?

At startup

What did you expect to happen?

Not Subscribed users increase The number of subscribers is also decreasing. Not all users can subscribe

I checked this link, but none of it was applicable. https://documentation.onesignal.com/docs/all-users-are-shown-as-not-subscribed

There was no problem with the 3.x version. It happened after an update. All implementation requirements of the migration guide are met.

OneSignal Flutter SDK version

5.0.4

Which platform(s) are affected?

Relevant log output

No response

Code of Conduct

スクリーンショット 2024-01-26 14 31 19
vasilich6107 commented 9 months ago

Hi. I have the same issue.

jagged91 commented 8 months ago

I'm also seeing the same issue - or at least something related. It seems like Android users aren't showing up in the list of users on OneSignal (sorted by 'last seen').

pnwk112 commented 8 months ago

Hi. Any information or solutions to this problem? I have a similar situation in my project. We have lost 35% of subscriptions since the update (3 months). Before the update, the number of subscriptions was practically constant

jkasten2 commented 8 months ago

@yosuke-nakayama @vasilich6107 @jagged91 @pnwk112 Thanks for reporting this issue.

We haven't been able to reproduce this issue but are continuing to look into it. Please provide the following details which will help us narrow down the cause:

  1. Those that haven't included your SDK please include it in your reply.
  2. Are you seeing "Not Subscribed" only for new Users / Subscriptions?, or are exiting subscriptions becoming unsubscribed as well?
  3. Is this something you can reproduce?
    • If so a step-by-step description will be a big help to finding the root cause
    • Please so provide a full logcat log, there is mostly something being printed on why it is being set as "Not Subscribed".
  4. Do you call OneSignal.login?
    • If so please include when this is called in your code.
  5. Looking over the specific app for patterns of the Subscriptions and User records can help narrow down the issue. Please reach out to OneSignal support as well including a link to this thread so your OneSignal app can be reviewed.

@pnwk112, a specific question on this:

We have lost 35% of subscriptions since the update (3 months). Before the update, the number of subscriptions was practically constant

Do you mean you are seeing 35% decrease in new subscribers? Or a 35% decrease in your totals (including existing subscribers).

jkasten2 commented 8 months ago

@yosuke-nakayama @vasilich6107 @jagged91 @pnwk112 Is this still an issue for you?

vasilich6107 commented 8 months ago

Hi @jkasten2 I'm not checking it frequently) So I have no idea)

pnwk112 commented 8 months ago

Upgrading to the latest versions seems to fix the issue.

garrett-zeroeyes commented 7 months ago

I'm still getting this with Android on 5.1.3 with some users.

temcewen commented 6 months ago

@jkasten2 This may be the same issue I am having here: https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/890

I attached a detailed log if you want to take a look at that.

GIGAM25 commented 5 months ago

I am here because of same issue as well

onesignal not subscribed

DmitryGaimaldinov commented 4 months ago

Any updates?

GIGAM25 commented 4 months ago

further checking, it turned out to be a huawei phone. there's separate config you need to do. check onesignal documentation regarding push messaging in huawei

tommylung commented 3 months ago

Hi. I have the same issue on Huawei phone. It works in debug mode but not in release mode.

GIGAM25 commented 3 months ago

Hi. I have the same issue on Huawei phone. It works in debug mode but not in release mode.

huawei has a separate config. check the documentation

https://documentation.onesignal.com/docs/authorize-onesignal-to-send-huawei-push

tommylung commented 3 months ago

Hi. I have the same issue on Huawei phone. It works in debug mode but not in release mode.

huawei has a separate config. check the documentation

https://documentation.onesignal.com/docs/authorize-onesignal-to-send-huawei-push

Hi @GIGAM25 . I didn't get it. Where can I do the separate config for debug mode and release mode? For my current situation, I can receive the notification and got the correct status on OneSignal, but not on release mode. In release mode, I still got "Not Subscribed" status.

tommylung commented 2 months ago

Hi. I have the same issue on Huawei phone. It works in debug mode but not in release mode.

huawei has a separate config. check the documentation https://documentation.onesignal.com/docs/authorize-onesignal-to-send-huawei-push

Hi @GIGAM25 . I didn't get it. Where can I do the separate config for debug mode and release mode? For my current situation, I can receive the notification and got the correct status on OneSignal, but not on release mode. In release mode, I still got "Not Subscribed" status.

I created a new issue. https://github.com/OneSignal/OneSignal-Flutter-SDK/issues/956