在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