public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions) { Current = this; // SQL // var sqliteFilename = "TaskDB.db3"; // string documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); // Documents folder // string libraryPath = Path.Combine (documentsPath, "..", "Library"); // Library folder // var path = Path.Combine(libraryPath, sqliteFilename); // var conn = new Connection(path); // TaskMgr = new TodoItemManager(conn); // AZURE TaskMgr = new TodoItemManager(AzureStorageImplementation.DefaultService); // PUSH //var settings = UIUserNotificationSettings.GetSettingsForTypes ( // UIUserNotificationType.Alert | UIUserNotificationType.Badge | UIUserNotificationType.Sound // , null); //UIApplication.SharedApplication.RegisterUserNotificationSettings (settings); //UIRemoteNotificationType notificationTypes = // UIRemoteNotificationType.Alert | UIRemoteNotificationType.Badge | UIRemoteNotificationType.Sound; //UIApplication.SharedApplication.RegisterForRemoteNotificationTypes(notificationTypes); return true; }
public override void OnCreate() { base.OnCreate(); // SQL // var sqliteFilename = "TaskDB.db3"; // string documentsPath = Environment.GetFolderPath (Environment.SpecialFolder.Personal); // Documents folder // var path = Path.Combine(documentsPath, sqliteFilename); // var conn = new Connection(path); // TaskMgr = new TodoItemManager(conn); // AZURE TaskMgr = new TodoItemManager(AzureStorageImplementation.DefaultService); }