public override void OnCreate() { base.OnCreate(); // Setup Application AppController.EnableSettings(new AdMaiora.AppKit.Data.UserSettingsPlatformAndroid()); AppController.EnableUtilities(new AdMaiora.AppKit.Utils.ExecutorPlatformAndroid()); AppController.EnableServices(new AdMaiora.AppKit.Services.ServiceClientPlatformAndroid()); // Setup push notifications RegisterForRemoteNotifications(AppController.Globals.GoogleGcmSenderID); // Setup Facebook Xamarin.Facebook.FacebookSdk.SdkInitialize(this.ApplicationContext); }
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions) { // Setup Application AppController.EnableSettings(new AdMaiora.AppKit.Data.UserSettingsPlatformiOS()); AppController.EnableUtilities(new AdMaiora.AppKit.Utils.ExecutorPlatformiOS()); AppController.EnableServices(new AdMaiora.AppKit.Services.ServiceClientPlatformiOS()); // Setup push notifications RegisterForRemoteNotifications(launchOptions); // Setup Facebook Facebook.CoreKit.Settings.AppID = "1111406372229015"; Facebook.CoreKit.Settings.DisplayName = "Chatty"; Facebook.CoreKit.Profile.EnableUpdatesOnAccessTokenChange(true); Facebook.CoreKit.ApplicationDelegate.SharedInstance.FinishedLaunching(application, launchOptions); // Override point for customization after application launch. // If not required for your application you can safely delete this method return(RegisterMainLauncher(new SplashViewController(), launchOptions)); }