SDK Methods
Manually Triggering the Permission Dialog
const { granted } = await PushSDK.showNativeNotificationPermissionPrompt();
console.log(`User accepted permissions: ${granted}`);Adding Attributes to a Subscriber's Profile
PushSDK.UserProfile.set("interests", ["politics", "news"]);PushSDK.UserProfile.set({
is_paying_subscriber: true,
interests: ["politics", "news"]
});// add 'sports' to the subscriber's existing interests
await PushSDK.UserProfile.append("interests", ["sports"]);
// remove 'fashion' and 'news' from the subscriber's interests
await PushSDK.UserProfile.remove("interests", ["fashion", "news"]);Activity Tracking (URL / Screen Visits)
Retrieving Your Anonymous Push ID
Setting the Subscriber's External ID
Determining if a Visitor is Already Subscribed
Determining if a Visitor is Eligible to Prompt
Pausing / Resuming a User's Notifications (Soft Unsubscribe)
Permanently Delete a User
Setting the SDK Log Level
Last updated