<key>LSApplicationQueriesSchemes</key>
<array>
<string>com.xxx.otherapp1</string>
<string>com.xxx.otherapp2</string>
<string>com.xxx.otherapp3</string>
</array>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>auth</string>
<key>CFBundleURLSchemes</key>
<array>
<string>com.xxx.myapp</string>
</array>
</dict>
</array>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
html中使用window.open(“zscmd::exitapp”)退出应用
NSString *requestString = [[request URL] absoluteString];
NSArray *components = [requestString componentsSeparatedByString:@"::"];
if (components != nil && [components count] > 0) {
NSString *pocotol = [components objectAtIndex:0];
if ([pocotol isEqualToString:@"zscmd"]) {
NSString *commandStr = [components objectAtIndex:1];
NSLog(@"commmand:%@", commandStr);
if([commandStr isEqualToString:@"exitapp"]){
exit(0);
}
return NO;
}
}