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

Method deleteToken

packages/firebase-messaging/index.ios.ts:140–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138 });
139 }
140 deleteToken(): Promise<void> {
141 return new Promise((resolve, reject) => {
142 this.native?.deleteDataWithCompletion((error) => {
143 if (error) {
144 reject(FirebaseError.fromNative(error));
145 } else {
146 resolve();
147 }
148 });
149 });
150 }
151 get isDeviceRegisteredForRemoteMessages(): boolean {
152 return this._instance.isDeviceRegisteredForRemoteMessages;
153 }

Callers

nothing calls this directly

Calls 1

fromNativeMethod · 0.45

Tested by

no test coverage detected