SDK メソッド
権限ダイアログを手動で起動する
PushSDK.PushNotifications.showPermissionPrompt() { granted, settings, error in
// 任意のコールバック
print("User accepted permissions: \(granted)")
}[PushSDKPushNotifications showPermissionPrompt:^(BOOL granted, UNNotificationSettings * _Nonnull settings, NSError * _Nullable error) {
// 任意のコールバック
NSLog(@"User accepted permissions: %d", granted);
}];購読者のプロフィールに属性を追加する
PushSDK.UserProfile.set(["politics", "news"], forKey: "interests")[PushSDKUserProfile set:@YES forKey:@"is_paying_subscriber"];PushSDK.UserProfile.set([
"is_paying_subscriber": true,
"interests": ["politics", "news"]
])[PushSDKUserProfile set:@{
@"is_paying_subscriber": @YES,
@"interests": @[@"politics", @"news"]
}];// 購読者の既存の興味に 'sports' を追加
PushSDK.UserProfile.append(["sports"], to: "interests")
// 購読者の興味から 'fashion' と 'news' を削除
PushSDK.UserProfile.remove(["fashion", "news"], from: "interests")// 購読者の既存の興味に 'sports' を追加
[PushSDKUserProfile append:@[@"sports"] to:@"interests"];
// 購読者の興味から 'fashion' と 'news' を削除
[PushSDKUserProfile remove:@[@"fashion", @"news"] from:@"interests"];アクティビティの追跡(URL / 画面の訪問)
匿名の Push ID を取得する
購読者の外部IDを設定する
訪問者がすでに購読済みかどうかを判定する
訪問者がプロンプト表示の対象かどうかを判定する
ユーザー通知の一時停止 / 再開(ソフト購読解除)
ユーザーを完全に削除する
SDK のログレベルを設定する
最終更新