{"action":"created","issue":{"url":"https://api.github.com/repos/aritchie/acr-xamarin-forms/issues/86","labels_url":"https://api.github.com/repos/aritchie/acr-xamarin-forms/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/aritchie/acr-xamarin-forms/issues/86/comments","events_url":"https://api.github.com/repos/aritchie/acr-xamarin-forms/issues/86/events","html_url":"https://github.com/aritchie/acr-xamarin-forms/issues/86","id":57460821,"number":86,"title":"READ THIS FIRST!!!  DependencyService.Get returns null","user":{"login":"aritchie","id":1431555,"avatar_url":"https://avatars.githubusercontent.com/u/1431555?v=3","gravatar_id":"","url":"https://api.github.com/users/aritchie","html_url":"https://github.com/aritchie","followers_url":"https://api.github.com/users/aritchie/followers","following_url":"https://api.github.com/users/aritchie/following{/other_user}","gists_url":"https://api.github.com/users/aritchie/gists{/gist_id}","starred_url":"https://api.github.com/users/aritchie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aritchie/subscriptions","organizations_url":"https://api.github.com/users/aritchie/orgs","repos_url":"https://api.github.com/users/aritchie/repos","events_url":"https://api.github.com/users/aritchie/events{/privacy}","received_events_url":"https://api.github.com/users/aritchie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/aritchie/acr-xamarin-forms/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-12T13:37:27Z","updated_at":"2015-02-19T15:01:59Z","closed_at":null,"body":"This is the result of the compilation linker thinking the library isn't necessary.  To fix this, in your PLATFORM project, create a dummy instance from the PLATFORM dll (not your PCL/shared code) in the initialization portion of your project AFTER Forms.Initialize();.  You are most likely to see this problem in windows phone. \r\n\r\nPlatform Initialization Areas\r\niOS - AppDelegate\r\nAndroid - Launch Activity\r\nWinPhone - MainPage\r\n\r\nExamples of dummy instances based on the library you are using:\r\nnew Acr.XamForms.UserDialogs.WindowsPhone. UserDialogService();\r\n"},"comment":{"url":"https://api.github.com/repos/aritchie/acr-xamarin-forms/issues/comments/75066050","html_url":"https://github.com/aritchie/acr-xamarin-forms/issues/86#issuecomment-75066050","issue_url":"https://api.github.com/repos/aritchie/acr-xamarin-forms/issues/86","id":75066050,"user":{"login":"cvarelae","id":8706339,"avatar_url":"https://avatars.githubusercontent.com/u/8706339?v=3","gravatar_id":"","url":"https://api.github.com/users/cvarelae","html_url":"https://github.com/cvarelae","followers_url":"https://api.github.com/users/cvarelae/followers","following_url":"https://api.github.com/users/cvarelae/following{/other_user}","gists_url":"https://api.github.com/users/cvarelae/gists{/gist_id}","starred_url":"https://api.github.com/users/cvarelae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvarelae/subscriptions","organizations_url":"https://api.github.com/users/cvarelae/orgs","repos_url":"https://api.github.com/users/cvarelae/repos","events_url":"https://api.github.com/users/cvarelae/events{/privacy}","received_events_url":"https://api.github.com/users/cvarelae/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T15:01:59Z","updated_at":"2015-02-19T15:01:59Z","body":"i don't know how i can create a dummy instance :(\r\n\r\nThis is AppDelegate:\r\n\r\npublic override bool FinishedLaunching(UIApplication app, NSDictionary options)\r\n        {\r\n            Forms.Init();\r\n            this.LoadApplication (new MyNameSpace.App ());\r\n            return base.FinishedLaunching(app,options);\r\n        }\r\n\r\n\r\nThis is app:\r\n\r\npublic static IUserDialogService UserDialogService { get; set; }\r\n\r\npublic App() {\r\n      UserDialogService = DependencyService.Get<IUserDialogService> ();\r\n      this.MainPage = GetMainPage();\r\n}\r\n\r\n\r\n\r\nbut the UserDialogService is always null! What I am doing wrongly?\r\n\r\nThanks again!\r\n"}}