0
  • How to handle 404 URI (Not included in appxManifest->Content URI section) in UWP app.
  • If i add URI domain name in appxManifest->Content URI section then msapp-error.html will take care. other wise there is no action in App.

NOTE: I am not using WinJS.

6
  • First, you would have to add an Application Content URI Rules (ACURs) for your start page and any web resources utilized by that page. Then, I suggested that you need to debug your app in visual studio. When the app is running in the foreground, please press 'F12', it will open Microsoft Edge Developer Tools, in the console, please check if there're some errors . Commented Jan 9, 2018 at 2:53
  • @XavierXie-MSFT Thanks for reply, My questions is to handle URI's which have HTTP status 404. And these URI's will come dynamically from another source. Where we don't add these domains in appxManifest->Content URI section. And i am using below code to redirect.window.location.replace('http://www.google.com');. App won't find this domain in appxManifest->ContentURI section. So it won't redirect to new location. App will stay on same page, at this scenario how can i handle errors, like forcefully terminate app or show message popup. Thanks. Commented Jan 9, 2018 at 4:09
  • When you get these dynamic URIs, how did access these URIs? By using javascript code to navigate? Or clicking a <a/> tag to redirect? Or other someting? Commented Jan 9, 2018 at 7:22
  • Yes by XHR request APP will get some links in JSON response. Based on some condition APP will redirect to specific URL's. So here I want to validate. Commented Jan 9, 2018 at 9:00
  • Is there any way to find the current hosted WebAPP start URL from JavaScript. Commented Jan 9, 2018 at 9:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.