File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,11 @@ class OneSignalPushSubscription {
28
28
return this ._token;
29
29
}
30
30
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.
35
36
bool ? get optedIn {
36
37
return _optedIn;
37
38
}
You can’t perform that action at this time.
0 commit comments