i'm having trouble universal windows platform. i'm trying launch maps paramter direction in windows maps app.
my code works on desktop version, when try in mobile it's not getting parameter, it's launch maps.
is there different how use uri scheme launcher?
here's code:
var uri = new uri(@"bingmaps:?rtp=~pos." + lat + "_" + lng + "_" + name); var launcheroptions = new windows.system.launcheroptions(); launcheroptions.targetapplicationpackagefamilyname = "microsoft.windowsmaps_8wekyb3d8bbwe"; var success = await windows.system.launcher.launchuriasync(uri, launcheroptions);
my reference this: msdn
i'm not sure if misspelled uri in posted code. however, uri you've posted not right. uri scheme of windows maps app is
bingmaps:?query
in uri, missed ?
character , in test, using uri can launch map app both in desktop , mobile. once add ?
character, works both in desktop , mobile.