Skip to main content

register_device

Function register_device 

Source
pub async fn register_device(
    device_token: DeviceToken,
    other_user_ids: Vec<i64>,
    client_id: i32,
) -> Result<PushReceiverId, Error>
Expand description

Registers the currently used device for receiving push notifications. Returns a globally unique identifier of the push notification subscription

ยงArguments

  • device_token - Device token
  • other_user_ids - List of user identifiers of other users currently using the application
  • client_id - The client id to send the request to