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

Method onMessage

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

Source from the content-addressed store, hash-verified

75 }
76
77 onMessage(listener: (message: RemoteMessage) => any) {
78 if (!listener && this._onMessage) {
79 this._instance.removeOnMessage(this._onMessage);
80 } else {
81 this._instance.addOnMessage(listener);
82 }
83
84 this._onMessage = listener;
85 }
86
87 onToken(listener: (token: string) => any) {
88 if (!listener && this._onToken) {

Callers

nothing calls this directly

Calls 2

removeOnMessageMethod · 0.65
addOnMessageMethod · 0.65

Tested by

no test coverage detected