setNotificationsToken
export type NotificationsTokenOptions = {
token: string;
appBundleId: string;
isApnsToken?: boolean;
};
export type SetNotificationsTokenFunction = (options: NotificationsTokenOptions) => Promise<void>;
Example of usage:
window.AE_SDK(async (thrownError, AE_SDK_API) => {
await AE_SDK_API.setNotificationsToken({
token: '', //the-notification-token
appBundleId: '', // the bundle id
isApnsToken?: true, // true if it is an APNS token
});
});