Skip to content
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

State not retained with $href in a webview with native transition #354

Open
ronakshah2895 opened this issue Sep 22, 2018 · 2 comments
Open

Comments

@ronakshah2895
Copy link

While creating a jason for a web container with native transition as described here things work perfectly fine with android but not on IOS.
The website which I am using for the web container requires user to login to view the website. Now after the user logins he successfully sees the next view but when he clicks on some other link on the page it again asks the user to login after a native transition to the new view which is the issue. Links with just "type": "$default" works well. All the pages which do not require the user to login also works perfectly.
I even tried this with the JASON app for IOS and the issue replicates. Also everything works fine on android so this is an issue with just IOS builds.
On looking further into the issue I found out that Jasonette use WKWebkit to display Web View on IOS devices which does not automatically preserve cookies. You could read a discussion on stack-overflow here.
As I am new to the project I cannot exactly find out a way to fix the issue. If someone could take up this issue or guide me in a direction so that I could push a fix then that would be great.

Regards,
Ronak Shah

@darenr
Copy link
Contributor

darenr commented Sep 26, 2018

I think you're on your own Ronak, Ethan seems to have abandoned this project - there's been no activity for a while, not bug fixes, the support forum has gone.

Does the problem reproduce on IOS 12?

It would be helpful to submit a test case using jasonbase.com for your json to illustrate the problem then someone might pick it up. There's effort put in to prevent what you're asking for in fact, the views are supposed to be sandboxed, but as you point of this was largely not deliberate because it "works" as you want it to on Android. But there was effort made to make each view completely isolated and independent. As I understand your issue you want cookies for the domain retained across the app for web components.

@clsource
Copy link
Contributor

I believe this needs further discussion about the cache.
Maybe you could use the $cache action and inject using $agent.

Please go to https://github.com/jasonelle/jasonelle if you want to use the latest code :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants