GPS background tracking app
-
Here, at work, I am working on an app which (attempt to) track user location in the background. (Using C# and Xamarin / MonoTouch) I tried to enable background tracking with the 3 following steps: 1. I updated the
info.plist
to have: BackgroundMode-On (Location Update, Background Fetch) 2. in myAppDelegate
, callUIApplication.SharedApplication.SetMinimumBackgroundFetchInterval(Interval.TotalSeconds);
3. Also register location change with location manager:static CLLocationManager LocMgr = new CLLocationManager();
// ...
LocMgr.RequestAlwaysAuthorization();
if (CLLocationManager.LocationServicesEnabled)
{
LocMgr.StartMonitoringSignificantLocationChanges();
LocMgr.LocationsUpdated += LocationsUpdated;
}However, despite all of that, in a whole night I only get 10 update (Interval is set to 1 minute!!!) And I also went for a 10 minutes walk and I didn't get a single update! Any clue on what I could be missing? Cheers! :-D
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
-
Here, at work, I am working on an app which (attempt to) track user location in the background. (Using C# and Xamarin / MonoTouch) I tried to enable background tracking with the 3 following steps: 1. I updated the
info.plist
to have: BackgroundMode-On (Location Update, Background Fetch) 2. in myAppDelegate
, callUIApplication.SharedApplication.SetMinimumBackgroundFetchInterval(Interval.TotalSeconds);
3. Also register location change with location manager:static CLLocationManager LocMgr = new CLLocationManager();
// ...
LocMgr.RequestAlwaysAuthorization();
if (CLLocationManager.LocationServicesEnabled)
{
LocMgr.StartMonitoringSignificantLocationChanges();
LocMgr.LocationsUpdated += LocationsUpdated;
}However, despite all of that, in a whole night I only get 10 update (Interval is set to 1 minute!!!) And I also went for a 10 minutes walk and I didn't get a single update! Any clue on what I could be missing? Cheers! :-D
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
Never mind, I found a post on Xamarin! Walkthrough - Using Background Location - Xamarin[^] I have a feeling it's gotta work!
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
-
Here, at work, I am working on an app which (attempt to) track user location in the background. (Using C# and Xamarin / MonoTouch) I tried to enable background tracking with the 3 following steps: 1. I updated the
info.plist
to have: BackgroundMode-On (Location Update, Background Fetch) 2. in myAppDelegate
, callUIApplication.SharedApplication.SetMinimumBackgroundFetchInterval(Interval.TotalSeconds);
3. Also register location change with location manager:static CLLocationManager LocMgr = new CLLocationManager();
// ...
LocMgr.RequestAlwaysAuthorization();
if (CLLocationManager.LocationServicesEnabled)
{
LocMgr.StartMonitoringSignificantLocationChanges();
LocMgr.LocationsUpdated += LocationsUpdated;
}However, despite all of that, in a whole night I only get 10 update (Interval is set to 1 minute!!!) And I also went for a 10 minutes walk and I didn't get a single update! Any clue on what I could be missing? Cheers! :-D
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
-
Here, at work, I am working on an app which (attempt to) track user location in the background. (Using C# and Xamarin / MonoTouch) I tried to enable background tracking with the 3 following steps: 1. I updated the
info.plist
to have: BackgroundMode-On (Location Update, Background Fetch) 2. in myAppDelegate
, callUIApplication.SharedApplication.SetMinimumBackgroundFetchInterval(Interval.TotalSeconds);
3. Also register location change with location manager:static CLLocationManager LocMgr = new CLLocationManager();
// ...
LocMgr.RequestAlwaysAuthorization();
if (CLLocationManager.LocationServicesEnabled)
{
LocMgr.StartMonitoringSignificantLocationChanges();
LocMgr.LocationsUpdated += LocationsUpdated;
}However, despite all of that, in a whole night I only get 10 update (Interval is set to 1 minute!!!) And I also went for a 10 minutes walk and I didn't get a single update! Any clue on what I could be missing? Cheers! :-D
A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!
Do you want to engage your users effectively through a scalable and powerful app? And Looking for the best Android app development company to build a powerful app for your business? If yes, then Antier Solutions is the perfect place for you. We have a professional team of Android app developers who create versatile, user-friendly, and flexible applications. We work closely with the clients to understand their requirements and suggest them, cost-effective, scalable, and robust mobile solutions. If you want to break boundaries with your project, come to us and we turn your ideas into wonderful apps. To know more about services, visit our website https://antiersolutions.com/mobile-app-development.html.
Email ID : Info@antiersolutions.com