1.iOS打包,注意iOS9的https适配
- 在Info.plist中添加
NSAppTransportSecurity
类型Dictionary
。 - 在
NSAppTransportSecurity
下添加NSAllowsArbitraryLoads
类型Boolean
,值设为YES
2.安卓打包,注意android 9无法使用http 访问网络
解决:在AndroidManifest.xml中的
<application 标签下添加
android:usesCleartextTraffic="true"