ios - 混合开发中native和web之间如何传递token
怪我咯
怪我咯 2017-04-18 09:36:42
0
1
492

rt,现在在用native和web结合的混合开发,请问native和web之间如何传递token?期望是native端登录了之后,进入web页就不用登录了。

现在是每次进入网页之前把token作为参数拼接在url后面,感觉很麻烦。用js获取的话web端又要加一个中间页。

想知道处理这种问题的最佳实践是什么?

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
Peter_Zhu

The library that sends the request can read and set cookies
The native webview component can also read and set cookies
So the question is, what is the token?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template