You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "kerituni12 (via GitHub)" <gi...@apache.org> on 2024/11/26 02:26:20 UTC

[I] UIApplication.openURL(_:) needs to migrate to the non-deprecated [cordova-plugin-inappbrowser]

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-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] UIApplication.openURL(_:) needs to migrate to the non-deprecated [cordova-plugin-inappbrowser]

Posted by "erisu (via GitHub)" <gi...@apache.org>.
erisu commented on issue #1078:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/1078#issuecomment-2499553915

   It should have already been addressed and released in v6.0.0.
   
   You can view the relevant changes here:
   
   https://github.com/apache/cordova-plugin-inappbrowser/blob/rel/6.0.0/src/ios/CDVWKInAppBrowser.m#L297-L304


-- 
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-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Re: [I] UIApplication.openURL(_:) needs to migrate to the non-deprecated [cordova-plugin-inappbrowser]

Posted by "erisu (via GitHub)" <gi...@apache.org>.
erisu closed issue #1078: UIApplication.openURL(_:) needs to migrate to the non-deprecated
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/1078


-- 
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-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org