jcesarmobile commented on a change in pull request #781: breaking: Use
WKURLSchemeHandler for serving app content
URL: https://github.com/apache/cordova-ios/pull/781#discussion_r379914139
##########
File path:
CordovaLib/Classes/Private/Plugins/CDVIntentAndNavigationFilter/CDVIntentAndNavigationFilter.m
##########
@@ -46,7 +46,7 @@ - (void)parser:(NSXMLParser*)parser
didStartElement:(NSString*)elementName names
- (void)parserDidStartDocument:(NSXMLParser*)parser
{
// file: url <allow-navigations> are added by default
- self.allowNavigations = [[NSMutableArray alloc] initWithArray:@[
@"file://" ]];
+ self.allowNavigations = [[NSMutableArray alloc] initWithArray:@[
@"file://", @"app://" ]];
Review comment:
Since the user can enter an invalid scheme (i.e. http, https, etc) that will
default to "app", instead of reading directly from settings, I've created an
`appScheme` in the view controller and use that for allowing the navigation.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]