Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question]: How can I change the Subscription Status? #704

Closed
1 task done
maiconkf opened this issue Aug 15, 2023 · 2 comments
Closed
1 task done

[question]: How can I change the Subscription Status? #704

maiconkf opened this issue Aug 15, 2023 · 2 comments

Comments

@maiconkf
Copy link

maiconkf commented Aug 15, 2023

How can we help?

After uninstalling the application and reinstalling it, my user status is "Not Subscribed," and I'm unable to change the status.

Code:

onesignal_flutter: ^3.5.1

  @override
  void initState() {
    super.initState();

    OneSignal.shared.setAppId("APP_ID");
    OneSignal.shared.promptUserForPushNotificationPermission();
    OneSignal.shared
        .setNotificationOpenedHandler((OSNotificationOpenedResult result) {
      print(result.notification.templateName);
      _createAppOpenAd();
    });
  }
image

What am I doing wrong?

Code of Conduct

  • I agree to follow this project's Code of Conduct
@jkasten2
Copy link
Member

@maiconkf The "Not Subscribed" status has a few different causes, a more common one is a push token was not give to the device by FCM.

Can you view the logcat to see if you get any errors on the device? Feel free to share it here and we can take a look.

5.x.x version of this "Not Subscribed" issue: #826

@jennantilla
Copy link
Contributor

Closing due to no response.

@maiconkf, we have released major updates to the Flutter SDK which includes many improvements and enhancements. Please refer to our migration guide for full details.

If you are still having issues after upgrading, please let us know in #826.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants