В OneSignal iOS SDK есть свойство subscribed
.Что именно является третьим фактором, userSubscriptionSetting
, который влияет на значение subscribed
?
// Subscription Classes
@interface OSSubscriptionState : NSObject
@property (readonly, nonatomic) BOOL subscribed; // (yes only if userId, pushToken, and setSubscription exists / are true)
@property (readonly, nonatomic) BOOL userSubscriptionSetting; // returns setSubscription state.
@property (readonly, nonatomic) NSString* userId; // AKA OneSignal PlayerId
@property (readonly, nonatomic) NSString* pushToken; // AKA Apple Device Token
- (NSDictionary*)toDictionary;
@end