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

Method onMessage

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

Source from the content-addressed store, hash-verified

61 }
62
63 onMessage(listener: (message: RemoteMessage) => any) {
64 if (!listener && this._onMessage) {
65 this._instance.removeOnMessage(this._onMessage);
66 } else {
67 this._instance.addOnMessage(listener);
68 }
69
70 this._onMessage = listener;
71 }
72
73 onNotificationTap(listener: (message: RemoteMessage) => any) {
74 if (!listener && this._onNotificationTap) {

Callers

nothing calls this directly

Calls 2

removeOnMessageMethod · 0.65
addOnMessageMethod · 0.65

Tested by

no test coverage detected