Answered by:
[UWP]How to get the uri which was used but threw UriFormatException?

Question
-
I am using webview and at one point it navigates to URi Scheme and I subscribe to an event called UnsupportedUriSchemeIdentified.
But when I check its event argument it says that the uri could not be parsed, how to get the uri that it tried to parse
giga
- Edited by Xavier Xie-MSFT Friday, August 5, 2016 5:57 AM subject
Thursday, August 4, 2016 5:31 PM
Answers
-
Hi Giga Bokuchava,
Welcome to the Developing Universal Windows apps forum!
Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools
>>” our problem is obraining the json value in scheme”
You could make your uri string value as a general json value, then you could parse such json value.
This code sample for your details: [UWP] [Windows 10] Reading JSON file content stored as part of application asset
Best Regards,
Xavier Eoro
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Proposed as answer by Xavier Xie-MSFT Tuesday, August 16, 2016 9:40 AM
- Marked as answer by Xavier Xie-MSFT Wednesday, August 17, 2016 11:26 AM
Friday, August 5, 2016 6:03 AM
All replies
-
UriFormatException is raised if there Uri has some problem like host is missing, etc.
https://msdn.microsoft.com/library/windows/apps/windows.ui.xaml.controls.webview.unsupportedurischemeidentified.aspx
Gaurav Khanna | Microsoft .NET MVP | Microsoft Community Contributor
Thursday, August 4, 2016 6:08 PM -
We are calling an API which has scheme in format of json , our problem is obraining the json value in scheme
giga
Thursday, August 4, 2016 6:54 PM -
this is the scheme
fooscheme://{"status":"status", "foo":"someid=", "boo":"boo":"x"}
giga
Thursday, August 4, 2016 6:55 PM -
Hi Giga Bokuchava,
Welcome to the Developing Universal Windows apps forum!
Please read the sticky posts, especially the Guide to posting: subject line tags and Known Issues for Windows 10 SDK and Tools
>>” our problem is obraining the json value in scheme”
You could make your uri string value as a general json value, then you could parse such json value.
This code sample for your details: [UWP] [Windows 10] Reading JSON file content stored as part of application asset
Best Regards,
Xavier Eoro
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- Proposed as answer by Xavier Xie-MSFT Tuesday, August 16, 2016 9:40 AM
- Marked as answer by Xavier Xie-MSFT Wednesday, August 17, 2016 11:26 AM
Friday, August 5, 2016 6:03 AM