FCMServicePushClient

public protocol FCMServicePushClient

The FCM service push client.

  • Registers the given FCM registration token with the currently logged in user’s device on Stitch.

    Declaration

    Swift

    func register(withRegistrationToken token: String, _ completionHandler: @escaping (StitchResult<Void>) -> Void)

    Parameters

    withRegistrationToken

    the registration token to register.

    completionHandler

    The completion handler to call when the user is registered or the operation fails. This handler is executed on a non-main global DispatchQueue.

  • Deregisters the FCM registration token bound to the currently logged in user’s device on Stitch.

    Declaration

    Swift

    func deregister(_ completionHandler: @escaping (StitchResult<Void>) -> Void)

    Parameters

    completionHandler

    The completion handler to call when the user is deregistered or the operation fails. This handler is executed on a non-main global DispatchQueue.