setUserPushPreference

Sets the push notification preference level for the current user. This controls which messages will trigger push notifications for the user across all channels.

Return

Executable async Call responsible for setting the user's push preference. Returns a PushPreference object containing the updated preference settings on success.

Parameters

level

The notification level to set. Available options: PushPreferenceLevel.all, PushPreferenceLevel.mentions, PushPreferenceLevel.none