MCPcopy Create free account
hub / github.com/NativeScript/firebase / subscribeToTopic

Method subscribeToTopic

packages/firebase-messaging/index.ios.ts:115–125  ·  view source on GitHub ↗
(topic: string)

Source from the content-addressed store, hash-verified

113 }
114
115 subscribeToTopic(topic: string): Promise<void> {
116 return new Promise((resolve, reject) => {
117 this.native.subscribeToTopicCompletion(topic, (error) => {
118 if (error) {
119 reject(FirebaseError.fromNative(error));
120 } else {
121 resolve();
122 }
123 });
124 });
125 }
126 unregisterDeviceForRemoteMessages(): Promise<void> {
127 return this._instance.unregisterDeviceForRemoteMessages();
128 }

Callers

nothing calls this directly

Calls 1

fromNativeMethod · 0.45

Tested by

no test coverage detected