Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 75885

Launching another app multiple times

$
0
0

Beginner's question here.
I used this sample as a base
https://developer.xamarin.com/guides/ios/application_fundamentals/backgrounding/part_4_ios_backgrounding_walkthroughs/location_walkthrough/

public void PrintLocation (object sender, LocationUpdatedEventArgs e) {
CLLocation location = e.Location;
Console.WriteLine ("Altitude: " + location.Altitude + " meters");
Console.WriteLine ("Longitude: " + location.Coordinate.Longitude);
Console.WriteLine ("Latitude: " + location.Coordinate.Latitude);
Console.WriteLine ("Course: " + location.Course);
Console.WriteLine ("Speed: " + location.Speed);
}

Added these 2 lines
NSUrl request = new NSUrl ("FMP://~/gpstest.fmp12?&Script=UpdateCoords&$latitude=" + location.Coordinate.Latitude);
UIApplication.SharedApplication.OpenUrl (request);

FMP is Filemaker .
It seems to work only once.
I see the coordinates updated many times in the console but my Filemaker database is "called" only once.

What am I missing ?


Viewing all articles
Browse latest Browse all 75885

Trending Articles