Exemple #1
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            InitializeHockeyApp();

            // New Xlabs
            //var container = new SimpleContainer();
            //container.Register<IDevice>(t => AppleDevice.CurrentDevice);
            //Resolver.SetResolver(container.GetResolver()); // End new Xlabs
            Forms.Init();

            Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init();
            SQLitePCL.Batteries.Init();

            var azureService = DependencyService.Get <AzureService>();

            if (!File.Exists(azureService.CurrentPath))
            {
                File.Create(azureService.CurrentPath).Dispose();
            }
            RegisterDevice();

            LoadApplication(new TapFast2.Application());

            var x = typeof(Xamarin.Forms.Themes.DarkThemeResources);

            x = typeof(Xamarin.Forms.Themes.LightThemeResources);
            x = typeof(Xamarin.Forms.Themes.iOS.UnderlineEffect);

            MobileAds.Configure(Constants.Options.IOS_AD_MOB);
            return(base.FinishedLaunching(app, options));
        }
Exemple #2
0
 //
 // This method is invoked when the application has loaded and is ready to run. In this
 // method you should instantiate the window, load the UI into it and then make the window
 // visible.
 //
 // You have 17 seconds to return from this method, or iOS will terminate your application.
 //
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     global::Xamarin.Forms.Forms.Init();
     LoadApplication(new App());
     MobileAds.Configure("ca-app-pub-4482874738236340~4375799601");
     return(base.FinishedLaunching(app, options));
 }
        /// <summary>
        /// Initialise a new AdMob Ad Overlay. This is a Cross platform method which will run on both Android and iOS.
        /// </summary>
        /// <param name="game">The host game to et the service container from</param>
        /// <param name="location">The location to place the add on the screen</param>
        public AdMobAdapter(UIViewController controller, string appId,
                            string interstitialAdID,
                            string rewardedVideoAdID,
                            string testDeviceID = "")
        {
            AppID             = appId;
            InterstitialAdID  = interstitialAdID;
            RewardedVideoAdID = rewardedVideoAdID;
            TestDeviceID      = testDeviceID;

            ViewController = controller;

            //Initialize AdMob
            MobileAds.Configure(AppID);

            //Preload an interstitial ad
            LoadInterstitialAd();

            //initialize rewarded video and preload a rewared video ad
            RewardBasedVideoAd.SharedInstance.FailedToLoad         += DidFailToLoad;
            RewardBasedVideoAd.SharedInstance.AdReceived           += DidReceiveAd;
            RewardBasedVideoAd.SharedInstance.Opened               += DidOpen;
            RewardBasedVideoAd.SharedInstance.PlayingStarted       += DidStartPlaying;
            RewardBasedVideoAd.SharedInstance.Closed               += DidClose;
            RewardBasedVideoAd.SharedInstance.WillLeaveApplication += WillLeaveApplication;
            RewardBasedVideoAd.SharedInstance.UserRewarded         += DidRewardUser;

            LoadRewardedVideoAd();
        }
Exemple #4
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();



            LoadApplication(new App());

            //Firebase.Analytics.Loader loader1 = new Firebase.Analytics.Loader();
            //Firebase.InstanceID.Loader loader2 = new Firebase.InstanceID.Loader();

            //FirebasePushNotificationManager.Initialize(options, false);
            FirebasePushNotificationManager.Initialize(options, new NotificationUserCategory[]
            {
                new NotificationUserCategory("message", new List <NotificationUserAction> {
                    new NotificationUserAction("Reply", "Reply", NotificationActionType.Foreground)
                }),
                new NotificationUserCategory("request", new List <NotificationUserAction> {
                    new NotificationUserAction("Accept", "Accept"),
                    new NotificationUserAction("Reject", "Reject", NotificationActionType.Destructive)
                })
            });
            MobileAds.Configure(AppConstant.AdmobAppId);
            return(base.FinishedLaunching(app, options));
        }
Exemple #5
0
 //
 // This method is invoked when the application has loaded and is ready to run. In this
 // method you should instantiate the window, load the UI into it and then make the window
 // visible.
 //
 // You have 17 seconds to return from this method, or iOS will terminate your application.
 //
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     global::Xamarin.Forms.Forms.Init();
     LoadApplication(new App());
     MobileAds.Configure("ca-app-pub-2325431808910219~3569841822");
     return(base.FinishedLaunching(app, options));
 }
Exemple #6
0
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     global::Xamarin.Forms.Forms.Init();
     MobileAds.Configure(Misc.UsefulStuff.AdMob_iOS_AppID); // Not deprecated - should be called!
     CachedImageRenderer.Init();                            // Enable FFImageLoading
     LoadApplication(new App());
     return(base.FinishedLaunching(app, options));
 }
Exemple #7
0
 protected override void OnStart()
 {
     MobileAds.Configure("ca-app-pub-KEY");
     MobileCenter.Start("ios=KEY;" +
                        "uwp=KEY;" +
                        "android=KEY;",
                        typeof(Analytics), typeof(Crashes));
 }
Exemple #8
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            MobileAds.Configure(AppConstants.AppId);
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            MobileAds.Configure("ca-app-pub-7942157002969778~6442001066");
            LoadApplication(new App());
            return(base.FinishedLaunching(app, options));
        }
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Rg.Plugins.Popup.Popup.Init();
            MobileAds.Configure("ca-app-pub-xxx~xxx");
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Exemple #11
0
 private void OnCreate()
 {
     //TODO : SecureStorage Propriétés n'existent pas du côté iOS
     //SecureStorageImplementation.Password = FormatPassword();
     App.SetupContainer(Bootstrapper.CreateContainer());
     MobileAds.Configure("ca-app-pub-4922361220283829~3348751403");
     LoadConfiguration();
     LoadSettings();
 }
Exemple #12
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            MobileAds.Configure("ca-app-pub-1884504687379461~7019124091");

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Exemple #13
0
 //
 // This method is invoked when the application has loaded and is ready to run. In this
 // method you should instantiate the window, load the UI into it and then make the window
 // visible.
 //
 // You have 17 seconds to return from this method, or iOS will terminate your application.
 //
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     global::Xamarin.Forms.Forms.Init();
     LoadApplication(new App());
     CardsViewRenderer.Preserve();
     ImageCircleRenderer.Init();
     MobileAds.Configure("ca-app-pub-8359860011604747~6496691983");
     return(base.FinishedLaunching(app, options));
 }
Exemple #14
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Xamarin.Forms.Forms.Init();
            PlotViewRenderer.Init();
            MobileAds.Configure("ca-app-pub-7314872527484882~2705287457");
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Exemple #15
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());

            MobileAds.Configure("ca-app-pub-1438547612946932~4388953377");

            return(base.FinishedLaunching(app, options));
        }
Exemple #16
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            Xamarin.Forms.Forms.Init();

            MobileAds.Configure("YOUR IOS APP ID HERE");

            LoadApplication(new App());

            return(base.FinishedLaunching(application, launchOptions));
        }
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions)
        {
            Forms.Init();

            MobileAds.Configure("ca-app-pub-6887189176800602~2091417503");

            LoadApplication(new App());

            return(base.FinishedLaunching(uiApplication, launchOptions));
        }
Exemple #18
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            LoadApplication(new App());

            MobileAds.Configure("ca-app-pub-5192562049043590~3171173344");

            return(base.FinishedLaunching(app, options));
        }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            CachedImageRenderer.Init();

            MobileAds.Configure(CoreSettings.Config.Admob.IOSApp);

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Exemple #20
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            var result = base.FinishedLaunching(application, launchOptions);

            Firebase.Core.App.Configure();
            MobileAds.Configure("ca-app-pub-5024755913411556~2042827060");
            //var remoteConfig = RemoteConfig.SharedInstance;
            //Dictionary<object, object> remoteConfigDefaults = new Dictionary<object, object>();
            //remoteConfigDefaults.Add("ads_enabled", true);
            //remoteConfig.SetDefaults(remoteConfigDefaults);
            return(result);
        }
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // Override point for customization after application launch.
            // If not required for your application you can safely delete this method

            (Window.RootViewController as UINavigationController).PushViewController(new AdsViewController(), true);

            App.Configure();
            // Get your Application Id here: https://apps.admob.com/#account/appmgmt:
            MobileAds.Configure("ca-app-pub-XXXXXXXXXXXXXXXX~NNNNNNNNNN");

            return(true);
        }
Exemple #22
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // Override point for customization after application launch.
            // If not required for your application you can safely delete this method

            this.UserSetting();
            this.NetworkInstance = new Networking();
            this.RegisterForRemoteNotifications();

            MobileAds.Configure("ca-app-pub-8599301686845489~1509563653");

            return(true);
        }
Exemple #23
0
        protected override void InitializeIoC()
        {
            base.InitializeIoC();
            Mvx.IoCProvider.RegisterType <IToastNotificator, ToastNotification>();
            ToastNotification.Init();
            Mvx.IoCProvider.RegisterSingleton <IToastService>(new ToastService());
            Mvx.IoCProvider.RegisterSingleton <IAppVersionHelper>(new AppVersionHelper());


#if DEBUG
            MobileAds.Configure(AppConfigurations.AdMobIosTestAppId);
#endif
#if !DEBUG
            MobileAds.Configure(AppConfigurations.AdMobIosAppId);
#endif
        }
Exemple #24
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Rg.Plugins.Popup.Popup.Init();
            global::Xamarin.Forms.Forms.Init();

            // Code for starting up the Xamarin Test Cloud Agent
#if DEBUG
            Xamarin.Calabash.Start();
#endif
            //AppCenter.Start("81c4f5d6-0f57-4129-91d0-8151db0a38c9", typeof(Analytics), typeof(Crashes));

            MobileAds.Configure("ca-app-pub-8844105249330187~9258943587");
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Exemple #25
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();
            App.IsNeedMargin = GetNeedBezelPadding();
            LoadApplication(new App());


            if (Const.Offline)
            {
                Xamarin.Forms.Device.BeginInvokeOnMainThread(() =>
                {
                    App.Transition(new StartPage());
                });
            }
            else
            {
                Firebase.Core.App.Configure();
                Messaging.SharedInstance.Delegate          = this;
                RemoteConfig.SharedInstance.ConfigSettings = new RemoteConfigSettings(false);
                FetchRemoteConfigFromServer();
                MobileAds.Configure(Const.AdMobID);
                DependencyService.Get <IDeviceService>().LoadAd();

#if !DEBUG
                var settings = UIUserNotificationSettings.GetSettingsForTypes(UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound, null);
                app.RegisterUserNotificationSettings(settings);
                app.RegisterForRemoteNotifications();
                UNUserNotificationCenter.Current.Delegate = new UserNotificationCenterDelegate();
#endif

                Xamarin.Forms.Device.BeginInvokeOnMainThread(async() =>
                {
                    var canUseStore = await StorageService.Initialize();
                    if (!canUseStore)
                    {
                        await App.ShowMessage("現在ご利用できません");
                        throw new Exception("Firebase setup failed");
                    }
                    App.Transition(new StartPage());
                });
            }

            AnimationViewRenderer.Init();
            return(base.FinishedLaunching(app, options));
        }
Exemple #26
0
        public static void Init(string appId, string interstitialId = null,
                                string bannerId = null)
        {
            m_appId = appId;
            // From Firebase.Analytics for Google AdMob:
            Firebase.Core.App.Configure();
            MobileAds.Configure(m_appId);

            if (!string.IsNullOrWhiteSpace(interstitialId))
            {
                m_interstitialId = interstitialId;
                CreateAndRequestInterstitial();
            }
            if (!string.IsNullOrWhiteSpace(bannerId))
            {
                m_bannerId = bannerId;
            }
        }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            NSDictionary dictionary = NSDictionary.FromObjectAndKey(NSObject.FromObject(userAgent), NSObject.FromObject("UserAgent"));

            NSUserDefaults.StandardUserDefaults.RegisterDefaults(dictionary);

            PlacesClient.ProvideApiKey("AIzaSyC0m0Td_wjHRWlS9uCOyFpZ_0kt6JYPRl8");
            MapServices.ProvideAPIKey("AIzaSyC0m0Td_wjHRWlS9uCOyFpZ_0kt6JYPRl8");

            global::Xamarin.Forms.Forms.Init();
            CarouselViewRenderer.Init();


            MobileAds.Configure("ca-app-pub-8565023384951297/2042844969");
            FormsMaps.Init();
            //Paypal initialization
            CrossPayPalManager.Init(new PayPalConfiguration(
                                        PayPalEnvironment.Sandbox,
                                        "APP-80W284485P519543T"
                                        )
            {
                AcceptCreditCards     = true,
                Language              = "en_US",
                ShippingAddressOption = ShippingAddressOption.None
            }
                                    );

            ImageCircleRenderer.Init();
            FFImageLoading.Forms.Touch.CachedImageRenderer.Init();
            PrepareRemoteNotification();
            App.ScreenHeight = (double)UIScreen.MainScreen.Bounds.Height;
            App.ScreenWidth  = (double)UIScreen.MainScreen.Bounds.Width;

            Xamarin.Auth.Presenters.OAuthLoginPresenter.PlatformLogin = (authenticator) =>
            {
                var oAuthLogin = new OAuthLoginPresenter();
                oAuthLogin.Login(authenticator);
            };
            MessagingCenter.Subscribe <ImageSource>(this, "Share", IosMethods.Share, null);
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Exemple #28
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            // Override point for customization after application launch.
            // If not required for your application you can safely delete this method

            // Code to start the Xamarin Test Cloud Agent
#if ENABLE_TEST_CLOUD
            //Xamarin.Calabash.Start();
#endif

            ServiceLocator.Instance.Add <IS3Service, S3Service>();
            ServiceLocator.Instance.Add <IImageDownloader, ImageDownloader>();
            ServiceLocator.Instance.Add <IPersistantStorage, PersistantStorage>();
            ServiceLocator.Instance.Add <IBroadcastNotificaion, BroadCastNotificaion>();

            Profile.EnableUpdatesOnAccessTokenChange(true);
            Settings.AppID       = NotSensitive.SlinkKeys.facebook_app_id;
            Settings.DisplayName = NotSensitive.SlinkKeys.facebook_display_name;

            if (RealmUserServices.DidUserPersist())
            {
                ApplicationExtensions.EnterApplication(false, true);
            }
            else
            {
                ApplicationExtensions.LoadStoryboardRoot("Landing", false);
            }

            SetupUnauthorizedCatcher();
            PredownloadImages();

            AppCenter.Start("fa06eb43-8be9-426c-97f9-42f3ab13cd3b", typeof(Analytics), typeof(Crashes));
            ServiceRunner.SharedInstance.StartService <AppCenterManager>();

            MobileAds.Configure("ca-app-pub-4252799872870196~2848379026");
            return(true);
        }
Exemple #29
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            global::Xamarin.Forms.Forms.Init();

            CarouselViewRenderer.Init();
            FlowListView.Init();
            CachedImageRenderer.Init();

            //赋值数据库文件
            FileAccessHelper.GetLocalFilePath("Data.sqlite");

            LoadApplication(new App());

            //var x = typeof(Xamarin.Forms.Themes.DarkThemeResources);
            //x = typeof(Xamarin.Forms.Themes.LightThemeResources);
            //x = typeof(Xamarin.Forms.Themes.iOS.UnderlineEffect);

            //initialize MobileAds
            MobileAds.Configure("ca-app-pub-XXXXXXXXXXXXXX");

            return(base.FinishedLaunching(app, options));
        }
Exemple #30
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // Override point for customization after application launch.
            // If not required for your application you can safely delete this method

            App.Configure();
            MobileAds.Configure(ADSManager.AppID);

            Manager.Init();

            var splitController = Window.RootViewController as UISplitViewController;

            if (splitController != null)
            {
                splitController.Delegate             = this;
                splitController.PreferredDisplayMode = UISplitViewControllerDisplayMode.AllVisible;
            }
            else
            {
                throw new System.MissingMemberException("Storyboard's root element is not SplitViewController");
            }

            return(true);
        }