You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/02/19 05:12:58 UTC

[GitHub] [cordova-ios] xinhuadian opened a new issue #1077: handleOpenURL can't work after upgrade to Cordova IOS 6

xinhuadian opened a new issue #1077:
URL: https://github.com/apache/cordova-ios/issues/1077


   # Bug Report
   
   ## Problem
   This issue happen after our app upgrade from Cordova IOS 5.1 to 6.
   
   
   ### What is expected to happen?
   When Our app open another app(such like Microsoft Authenticator), and Microsoft Authenticator call back to our app.
   expected behavior is handleOpenURL will be called when back to our app. 
   
   
   ### What does actually happen?
   HandleOpenURL not be triggered .  And this issue NOT happen when use Microsoft Authenticator directly open our app 
   instead of our app -> Microsoft Authenticator --> our app.
   And this issue also NOT happen in our app--> Microsoft Authenticator(wait for 5 seconds)--> our app.
   
   
   
   ## Information
   I debug the issue ,found that  processOpenUrl in CDVHandleOpenURL.m have been  executed .
   but the handleOpenURL javascript not be executed .
   
         NSString* jsString = [NSString stringWithFormat:@"document.addEventListener('deviceready',function(){if (typeof handleOpenURL === 'function') { handleOpenURL(\"%@\");}});", url.absoluteString];
   
           [weakSelf.webViewEngine evaluateJavaScript:jsString completionHandler:nil];
   
   
   
   
   
   
   ### Environment, Platform, Device
   
   I test in IOS 13,14 . All same behavior. 
   
   ### Version information
   
   Cordova 9.  
   Cordova IOS 6.1 
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [] 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.

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