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

Method onNotificationTap

packages/firebase-messaging/index.ios.ts:97–105  ·  view source on GitHub ↗
(listener: (message: RemoteMessage) => any)

Source from the content-addressed store, hash-verified

95 }
96
97 onNotificationTap(listener: (message: RemoteMessage) => any) {
98 if (!listener && this._onNotificationTap) {
99 this._instance.removeOnNotificationTap(this._onNotificationTap);
100 } else {
101 this._instance.addOnNotificationTap(listener);
102 }
103
104 this._onNotificationTap = listener;
105 }
106
107 registerDeviceForRemoteMessages(): Promise<void> {
108 return this._instance.registerDeviceForRemoteMessages();

Callers

nothing calls this directly

Calls 2

addOnNotificationTapMethod · 0.65

Tested by

no test coverage detected