-
Notifications
You must be signed in to change notification settings - Fork 144
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hidden method for android #105
Comments
Hi! I'm not the one that created the Android portion of this plugin so I'm not the most qualified to dive into those details. Others perhaps? |
I've ended up using InAppBrowser on Android, as it has the hidden feature and it is working as expected now. Thanks anyway @EddyVerbruggen |
cordova.InAppBrowser.open(imgAdSrcWithMagicCookie, '_blank', 'location=yes,clearsessioncache=no,clearcache=no,hidden=yes');
// and now open the real url
cordova.InAppBrowser.open(anchor, '_blank', 'location=no,clearsessioncache=no,clearcache=no,hidden=no'); It's important to set clearcache and clearsessioncache to "no". Might help anyone |
Hello, I need to get chrome cookies because it is chrome that deals with the authentication part. I need to recover cookies to give cookies to InAppBrowser because it allows to hide the url bar and listen to the events. Can not customize safariviewcontroller and listen to url called A solution? Thank you |
This is what I made changes in plugin at my end and it is working. I followed following link of stackoverflow for how to close CustomChromeTab: https://stackoverflow.com/a/41596629/842607 I made sure that in config.xml I have added line under This will make sure that it will have just single task of that screen, other screen will be overlapped without creating stack of activtivies Next thing under
Thus that method will look like this:
Using this way hide started working even on Android platform. |
@jimitpatel do you have a fork with that code somewhere on Github? |
@jimitpatel an will your code work with "singleTop" (this is what I've set currently) |
@hirbod , I don't have any fork of this. But was facing this issue and found out solution so in return I have posted it over here. Additionally, I can't push on repository from my office :D :D If I do I will be out of the company. As of |
So if I get you right, @jimitpatel, this will only give us the ability to close it, but not to start a hidden tab, right? |
I've tested this code and it works. It would be great having this feature available @EddyVerbruggen :-) |
@plvaldes Happy to merge a PR |
Dear @EddyVerbruggen,
I've been struggling a while to get Cookies working fine on iOS, but now I am stuck.
My code is working fine on iOS and android, but "hidden" is not working for android. It's opening visible. The cookies will be set as wished but as there is not even a .hide() method, everything will break on android.
Is there any chance to get hidden loading working for android too?
The text was updated successfully, but these errors were encountered: