You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Agnosco (JIRA)" <ji...@apache.org> on 2018/01/26 14:21:00 UTC
[jira] [Comment Edited] (CB-13832) IOS app gets logged out when
using "_system" as target
[ 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:20 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 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):
* 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-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org