Skip to content

[Feedback]: Strange bool optIn Value Onesignal 5.0.0 stable #720

Closed
@xunreal75

Description

@xunreal75

What's on your mind?

Hi your optIn bool isn't helpful and hard to understand - please

I don't understand the sense of the value - it's not logical.

my understand is bool optIn is true if I'm optedOut - why this inverted logic?

 /// Gets a boolean value indicating whether the current user is opted in to push notifications.
  /// This returns true when the app has notifications permission and optedOut is called.
  /// Note: Does not take into account the existence of the subscription ID and push token.
  /// This boolean may return true but push notifications may still not be received by the user.
  bool? get optedIn {
    return _optedIn;
  }

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions