[ https://issues.apache.org/jira/browse/CB-13832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16341094#comment-16341094 ]
Agnosco edited comment on CB-13832 at 1/26/18 2:34 PM: ------------------------------------------------------- I'm logged in Cordova ios app and have an external link in the app. So, to open the link in an external browser I have -"cordova.InAppBrowser.open(url, '_system', 'location=no');". It opens the url link in the external browser. But when I hit the link on top of browser(that links back to the app) or open the app that went in background, I can see that I have been logged out from app. replacing (void)openInSystem:(NSURL*)url method with the one in older version(1.4.0) worked (void)openInSystem:(NSURL*)url { if ([[UIApplication sharedApplication] canOpenURL:url]) { [[UIApplication sharedApplication] openURL:url]; }else { // handle any custom schemes to plugins [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]]; } } was (Author: sajana): I'm logged in Cordova ios app and have an external link in the app. So, to open the link in an external browser I have -"cordova.InAppBrowser.open(url, '_system', 'location=no');". It opens the url link in the external browser. But when I hit the link on top of browser(that links back to the app) or open the app that went in background, I can see that I have been logged out from app. * replacing (void)openInSystem:(NSURL*)url method with the one in older version(1.4.0) worked * * (void)openInSystem:(NSURL*)url \{ if ([[UIApplication sharedApplication] canOpenURL:url]) \{ [[UIApplication sharedApplication] openURL:url]; }else { // handle any custom schemes to plugins [[NSNotificationCenter defaultCenter] postNotification:[NSNotification notificationWithName:CDVPluginHandleOpenURLNotification object:url]]; } } > IOS app gets logged out when using "_system" as target > ------------------------------------------------------ > > Key: CB-13832 > URL: https://issues.apache.org/jira/browse/CB-13832 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-inappbrowser > Reporter: Agnosco > Priority: Major > > I have cordova 7.1.0 and IOS 10+ > I'm logged in my ios app and have an external link in the app. So, to open > the link in safari I have -"cordova.InAppBrowser.open(url, '_system', > 'location=no');". It opens the url link in safari but I got logged out from > app when I tried to go back to app. > It works fine with target '_blank'. Is it a desired behavior? It used to work > in previous version of cordova-plugin-inappbrowser 1.3.0. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org