Search Results for

    Show / Hide Table of Contents

    Class User.PushClient

    The Push client exposes an API to register/deregister for push notifications from a client app.

    Inheritance
    Object
    User.PushClient
    Namespace: Realms.Sync
    Assembly: Realm.dll
    Syntax
    public class PushClient

    Methods

    | Improve this Doc View Source

    DeregisterDeviceAsync()

    Deregister the user's device from Firebase Cloud Messaging.

    Declaration
    public Task DeregisterDeviceAsync()
    Returns
    Type Description
    Task

    An awaitable Task representing the remote operation. Successful completion indicates that the device's registration token was removed from Atlas App Services and it will no longer receive push notifications.

    | Improve this Doc View Source

    RegisterDeviceAsync(String)

    Registers the given Firebase Cloud Messaging registration token with the user's device on Atlas App Services.

    Declaration
    public Task RegisterDeviceAsync(string token)
    Parameters
    Type Name Description
    String token

    The FCM registration token.

    Returns
    Type Description
    Task

    An awaitable Task representing the remote operation. Successful completion indicates that the registration token was registered by Atlas App Services and this device can now receive push notifications.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2020 Realm
    Generated by DocFX