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

能解决微信内置浏览器在用户退出后本地存储被清空的问题吗? #11

Open
JerroldLee opened this issue Mar 31, 2015 · 2 comments

Comments

@JerroldLee
Copy link

能解决微信内置浏览器在用户退出后本地存储被清空的问题吗?详情请见:http://segmentfault.com/q/1010000000763058/a-1020000000763189

@iwillwen
Copy link
Owner

@JerroldLee 微信的WebView默認是會清除所有數據的,我建議可以這樣做:

  1. 讓用戶授權登陸,用JS SDK獲取用戶的OpenID
  2. 你自己寫一個Store,用Ajax或者Firebase從遠端獲取數據

@iwillwen
Copy link
Owner

@JerroldLee 你可以用min.dump和min.restore來把數據從Ajax加載到MinDB中。

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