protected override void OnResume() { //DependencyService.Register<JSONDataService>(); MainPage = new MainPage(); // enable location locationService.ActivateLocationManager(); }
public App() { InitializeComponent(); DependencyService.Register <JSONDataService>(); // Initialize and activate location service locationService = DependencyService.Get <ILocationService>(); MainPage = new MainPage(); locationService.ActivateLocationManager(); //MainPage = new NavigationPage(new View.StationListPage()); }