init method
Implementation
Future<void> init({
required NotifyEnvironment notifyEnvironment,
}) async {
performNotifyPodOperation<void>(
endpointName: 'NotifyPodInitializer.init',
operation: () async {
final FirebaseAdminApp admin = getAuthByEnvironment(
notifyEnvironment: notifyEnvironment,
logger: logger,
);
final FirebaseCloudMessagingApi clientFMCApi =
await initializeFirebaseMessageApi(
notifyEnvironment: notifyEnvironment,
logger: logger,
);
setupNotifyDependencies(
admin: admin,
clientFMCApi: clientFMCApi,
);
logger.finest(
'''Firebase Auth created and dependencies injected.
Firebase Cloud Messaging API client created and dependencies injected.
''',
);
},
);
}