iOS:info.plist文件中加入
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>
安卓
在android-src-main-AndroidManifest.xml的application标签中加入:android:usesCleartextTraffic="true"
<key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict>
在android-src-main-AndroidManifest.xml的application标签中加入:android:usesCleartextTraffic="true"