{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-mobile-apps-net-client/issues/260","repository_url":"https://api.github.com/repos/Azure/azure-mobile-apps-net-client","labels_url":"https://api.github.com/repos/Azure/azure-mobile-apps-net-client/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-mobile-apps-net-client/issues/260/comments","events_url":"https://api.github.com/repos/Azure/azure-mobile-apps-net-client/issues/260/events","html_url":"https://github.com/Azure/azure-mobile-apps-net-client/issues/260","id":188894713,"number":260,"title":"Setup for Microsoft.Azure.Mobile.Client.SQLiteStore v3.0.3 in Xamarin.Forms.Droid + Xamarin.Forms.iOS","user":{"login":"ericbrunner","id":6480047,"avatar_url":"https://avatars.githubusercontent.com/u/6480047?v=3","gravatar_id":"","url":"https://api.github.com/users/ericbrunner","html_url":"https://github.com/ericbrunner","followers_url":"https://api.github.com/users/ericbrunner/followers","following_url":"https://api.github.com/users/ericbrunner/following{/other_user}","gists_url":"https://api.github.com/users/ericbrunner/gists{/gist_id}","starred_url":"https://api.github.com/users/ericbrunner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericbrunner/subscriptions","organizations_url":"https://api.github.com/users/ericbrunner/orgs","repos_url":"https://api.github.com/users/ericbrunner/repos","events_url":"https://api.github.com/users/ericbrunner/events{/privacy}","received_events_url":"https://api.github.com/users/ericbrunner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-12T06:00:13Z","updated_at":"2016-11-12T07:46:42Z","closed_at":null,"body":"Hi,\r\n\r\nWhat do I have to setup in the Mainactivty (Droid) and AppDelegate(iOS) for current v.3.0.3?\r\n\r\nCurrently I have that:\r\n\r\n**Droid:**\r\n\r\n    `// See: http://motzcod.es/post/150988588867/updating-azure-mobile-sqlitestore-to-30\r\n\tConstants.SqliteStorePath =\r\n\t\tPath.Combine(System.Environment.GetFolderPath(System.Environment.SpecialFolder.Personal),\r\n\t\t\tConstants.SqliteStorePath);\r\n\r\n\r\n\tif (!File.Exists(Constants.SqliteStorePath))\r\n\t{\r\n\t\t// Create SQLite Store file \r\n\t\tFile.Create(Constants.SqliteStorePath).Dispose();\r\n\t}\r\n\r\n\tMicrosoft.WindowsAzure.MobileServices.CurrentPlatform.Init();\r\n\r\n\t//Call this in each platform before intializing your Mobile Client\r\n\tSQLitePCL.Batteries.Init();\r\n\r\n\r\n\tDroidApplication = new App();\r\n\tLoadApplication(DroidApplication);`\r\n\r\n**iOS:**\r\n\r\n    `//TODO Same MobileServiceClient.DefaultDatabasePath in Droid App ???\r\n\r\n\tHelper.Constants.SqliteStorePath = Path.Combine(MobileServiceClient.DefaultDatabasePath,\r\n\t\t\t\tHelper.Constants.SqliteStorePath);\r\n\r\n\tMobileServiceClient.EnsureFileExists(Helper.Constants.SqliteStorePath);\r\n\r\n\r\n\tMicrosoft.WindowsAzure.MobileServices.CurrentPlatform.Init();\r\n\r\n\t//Call this in each platform before intializing your Mobile Client\r\n\tSQLitePCL.Batteries.Init();\r\n\r\n\tLoadApplication (new App ());\r\n\r\n\treturn base.FinishedLaunching (app, options);`\r\n\r\nthanks,\r\nEric\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-mobile-apps-net-client/issues/comments/260107863","html_url":"https://github.com/Azure/azure-mobile-apps-net-client/issues/260#issuecomment-260107863","issue_url":"https://api.github.com/repos/Azure/azure-mobile-apps-net-client/issues/260","id":260107863,"user":{"login":"jamesmontemagno","id":1676321,"avatar_url":"https://avatars.githubusercontent.com/u/1676321?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesmontemagno","html_url":"https://github.com/jamesmontemagno","followers_url":"https://api.github.com/users/jamesmontemagno/followers","following_url":"https://api.github.com/users/jamesmontemagno/following{/other_user}","gists_url":"https://api.github.com/users/jamesmontemagno/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesmontemagno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesmontemagno/subscriptions","organizations_url":"https://api.github.com/users/jamesmontemagno/orgs","repos_url":"https://api.github.com/users/jamesmontemagno/repos","events_url":"https://api.github.com/users/jamesmontemagno/events{/privacy}","received_events_url":"https://api.github.com/users/jamesmontemagno/received_events","type":"User","site_admin":false},"created_at":"2016-11-12T07:46:42Z","updated_at":"2016-11-12T07:46:42Z","body":"The only thing that you need I believe is\r\n\r\n\r\nMicrosoft.WindowsAzure.MobileServices.CurrentPlatform.Init();\r\n\r\n\r\n"}}
{"actor":{"display_login":"jamesmontemagno"}}