Skip to content

Commit ae76516

Browse files
committed
Update comment for optedIn
fixes #720
1 parent 6095fd4 commit ae76516

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/src/pushsubscription.dart

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,11 @@ class OneSignalPushSubscription {
2828
return this._token;
2929
}
3030

31-
/// Gets a boolean value indicating whether the current user is opted in to push notifications.
32-
/// This returns true when the app has notifications permission and optedOut is called.
33-
/// Note: Does not take into account the existence of the subscription ID and push token.
34-
/// This boolean may return true but push notifications may still not be received by the user.
31+
/// Gets a boolean value indicating whether the current user is opted in to receive push notifications.
32+
/// If the device does not have push permission, optedIn is false.
33+
/// If the device has push permission, but no push token or subscription ID yet, optedIn is true.
34+
/// If the device has push permission and optOut() was not called, optedIn is true.
35+
/// If the device has push permission and optOut() was called, optedIn is false.
3536
bool? get optedIn {
3637
return _optedIn;
3738
}

0 commit comments

Comments
 (0)