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

NOT work on mobile safari #39

Closed
hnan opened this issue Sep 1, 2019 · 4 comments
Closed

NOT work on mobile safari #39

hnan opened this issue Sep 1, 2019 · 4 comments

Comments

@hnan
Copy link

hnan commented Sep 1, 2019

I tried this nice library, it works in Chrome(Desktop), but not work in mobile safari. Safari has more strict privacy polices that prevent cross site storage sharing. Is it possible to make this library work on mobile safari ?

@ofirdagan
Copy link
Owner

Your'e right. Safari has issues with storing 3rd party cookies in iframes. I don't know how to get over that except introduce a remote storage solution.

@hnan
Copy link
Author

hnan commented Sep 2, 2019

So with a remote storage solution, how would it work? can you elaborate on that. Thanks.

@ofirdagan
Copy link
Owner

I would use remote storage solution as a fallback.
For example u can use firebase.
So, in case the localstorage doesn't work I would set a cookie (which will identify the client) and according to this cookie (the cookie's value can be a uuid which will be the key) I would save and get the data from firebase.

Of course if you're saving sensitive data, you will need a more secure solution.

@hnan
Copy link
Author

hnan commented Sep 4, 2019

Hi Ofir, Thanks for the help! That worked out.

@hnan hnan closed this as completed Sep 4, 2019
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

2 participants