예제 #1
0
        public static void Initialize(
            UIApplication app,
            NSDictionary options,
            CrossFirebaseSettings settings,
            Options firebaseOptions = null,
            string name             = null)
        {
            if (firebaseOptions == null)
            {
                App.Configure();
            }
            else if (name == null)
            {
                App.Configure(firebaseOptions);
            }
            else
            {
                App.Configure(name, firebaseOptions);
            }

            if (settings.IsAnalyticsEnabled)
            {
                FirebaseAnalyticsImplementation.Initialize();
            }

            if (settings.IsAuthEnabled)
            {
                FirebaseAuthImplementation.Initialize(app, options, settings.FacebookId, settings.FacebookAppName);
            }

            if (settings.IsCloudMessagingEnabled)
            {
                FirebaseCloudMessagingImplementation.Initialize();
            }

            Console.WriteLine($"Plugin.Firebase initialized with the following settings:\n{settings}");
        }
예제 #2
0
 private static void HandleIntent(Intent intent)
 {
     FirebaseCloudMessagingImplementation.OnNewIntent(intent);
     FirebaseDynamicLinksImplementation.HandleDynamicLinkAsync(intent).Ignore();
 }