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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]