@react-native-oh-tpl/realm
Version:
Realm by MongoDB is an offline-first mobile database: an alternative to SQLite and key-value stores
25 lines (24 loc) • 919 B
TypeScript
import type { binding } from "../binding";
/**
* Authentication provider where users identify using an API-key.
* @deprecated https://www.mongodb.com/docs/atlas/app-services/reference/push-notifications/
*/
export declare class PushClient {
/** @internal */
private user;
/** @internal */
internal: binding.PushClient;
/** @internal */
constructor(user: binding.User, internal: binding.PushClient);
/**
* Register this device with the user.
* @param token - A Firebase Cloud Messaging (FCM) token, retrieved via the firebase SDK.
* @returns A promise that resolves once the device has been registered.
*/
register(token: string): Promise<void>;
/**
* Deregister this device with the user, to disable sending messages to this device.
* @returns A promise that resolves once the device has been deregistered.
*/
deregister(): Promise<void>;
}