I'm trying to add helpful error logging in our library to print out an error message if ScriptNotify fails due to the URI not being added to the app manifest.
This is the warning message printed within the WebView when I use DevTools to debug:
DOM7010: Unable to receive a ScriptNotify event from: 'https://somerequireddomainhere'. The website attempted to send a ScriptNotify event to the app from a WebView URI that is not included in the ApplicationContentUriRules for this app. To permit this event, add the URI to the ApplicationContentUriRules section of the package manifest. (In Visual Studio, add this URI to the Content URIs tab of the Manifest Designer.)
I'm looking to expose a similar message somehow in the form of an error message in our library so it doesn't fail silently and gives a fellow developer a heads up on how to fix this.
Is there a listener or method that would get triggered in the event that ScriptNotify fails due to this scenario?