MCPcopy Index your code
hub / github.com/angular/angularfire / provideMessaging

Function provideMessaging

src/messaging/messaging.module.ts:63–83  ·  view source on GitHub ↗
(fn: (injector: Injector) => FirebaseMessaging, ...deps: any[])

Source from the content-addressed store, hash-verified

61}
62
63export function provideMessaging(fn: (injector: Injector) => FirebaseMessaging, ...deps: any[]): EnvironmentProviders {
64 registerVersion('angularfire', VERSION.full, 'fcm');
65
66 return makeEnvironmentProviders([
67 DEFAULT_MESSAGING_INSTANCE_PROVIDER,
68 MESSAGING_INSTANCES_PROVIDER,
69 {
70 provide: PROVIDED_MESSAGING_INSTANCES,
71 useFactory: messagingInstanceFactory(fn),
72 multi: true,
73 deps: [
74 NgZone,
75 Injector,
76 PLATFORM_ID,
77 ɵAngularFireSchedulers,
78 FirebaseApps,
79 ...deps,
80 ],
81 }
82 ]);
83}

Callers 2

messaging.spec.tsFile · 0.90

Calls 1

messagingInstanceFactoryFunction · 0.85

Tested by

no test coverage detected