[ 
https://issues.apache.org/jira/browse/CB-13832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16341094#comment-16341094
 ] 

Agnosco commented on CB-13832:
------------------------------

* replacing (void)openInSystem:(NSURL*)url method with the one in older version 
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

Reply via email to