MCPcopy Index your code
hub / github.com/NativeScript/firebase / constructor

Method constructor

apps/demo-angular/src/app.service.ts:7–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5@Injectable()
6export class AppService {
7 constructor() {
8 const messaging = firebase().messaging();
9 messaging.onToken((token) => {
10 console.log('Firebase onToken', token);
11 });
12 messaging.onMessage((message) => {
13 console.log('Firebase onMessage', message);
14 });
15
16 messaging.onNotificationTap((message) => {
17 console.log('Firebase onNotificationTap', message);
18 });
19
20 }
21}

Callers

nothing calls this directly

Calls 6

firebaseFunction · 0.90
messagingMethod · 0.80
onTokenMethod · 0.65
logMethod · 0.65
onMessageMethod · 0.65
onNotificationTapMethod · 0.65

Tested by

no test coverage detected