Ionic 3 Response with status: 0 for URL: null

前端 未结 2 1970
庸人自扰
庸人自扰 2020-12-20 07:10

I have an Ionic 3 app. I recently added the iOS platform.

When i run it on iOS (emulator and device) all the server requests that has headers fail with the error

2条回答
  •  隐瞒了意图╮
    2020-12-20 07:58

    I have same issue in android, rest api not working in android emulator or device and give error: Response with 0 for Url: null. and finally i got solution that there is cordova platform android version issue, if there is cordova Android version is 6.3 then it’s working properly but it there is cordova Android version is 7.0 or 7.1.1 then it’s not working for me.

    So, I think in ios you should check your ios platform version and then try again. You can check ios or android version using cli command. ionic info

    Also check your all cordova plugins is installed or not. If someone is missing then install it manually and check again. You can check your cordova plugins using cli command. cordova plugin -ls

    I think it is helpful you.

    Thanks

提交回复
热议问题