OneSignal-Flutter-SDK icon indicating copy to clipboard operation
OneSignal-Flutter-SDK copied to clipboard

[question]: Unable to renew the subscription when I reinstall the app

Open tommylung opened this issue 8 months ago • 2 comments

How can we help?

Can I renew the subscription after deleting and reinstalling the app?

I have an application with several subscription IDs registered. I have used OneSignal.initialize(oneSignalAppId); for automatically subscribe to the OneSignal service. However, it only happened in iOS mobile application. Some mobile devices cannot renew the subscription after deleting and reinstalling the app.

Flutter version: 3.29.3 SDK version: onesignal_flutter: 5.3.2

Code of Conduct

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

tommylung avatar May 15 '25 08:05 tommylung

Hi @tommylung, can you explain more about what you mean with this statement:

Some mobile devices cannot renew the subscription after deleting and reinstalling the app.

When an app is deleted and reinstalled, the SDK should start everything fresh. A new push token should be received from the device, a new push subscription created, and a new user created until you call login to another user.

Are you seeing different behavior?

nan-li avatar May 22 '25 16:05 nan-li

Hi @nan-li , thanks for your reply.

There is an issue with iOS devices only. I have called OneSignal.initialize(xxx); after launching the app. It can create a new user when the app is deleted and reinstalled. However, a new Subscription ID cannot be created, whether the mobile app is installed from TestFlight or built using Xcode.

Image

Due to privacy concerns, I can only provide the Subscription ID here. We can discuss further via email.

Subscription ID: f3dc050d-76b7-40e8-92c4-4b632c431935

Many thanks.

tommylung avatar May 23 '25 10:05 tommylung