kerituni12 opened a new issue, #1078: URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/1078
# Bug Report UIApplication.openURL(_:) needs to migrate to the non-deprecated on IOS 18 ## Problem ### What is expected to happen? The issue occurs because UIApplication.openURL(_:) has been deprecated in iOS and replaced by UIApplication.open(_:options:completionHandler:) ## Information <!-- Include all relevant information that might help understand and reproduce the problem --> ### Command or Code ``` - (void)openInSystem:(NSURL*)url { if (@available(iOS 10.0, *)) { [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) { if (!success) { [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]]; } }]; } else { // Fallback for older iOS versions if ([[UIApplication sharedApplication] openURL:url] == NO) { [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]]; } } } ``` ### Environment, Platform, Device IOS 18 not working ## Checklist - [x] I searched for existing GitHub issues - [x] I updated all Cordova tooling to most recent version - [x] I included all the necessary information above -- 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. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org