I have built a woocommerce marketplace app. everything works fine on browser and android. But on ios i get an unknown error response from http. Please, how do i go about it. here’s the error below.
I am having a similar issue. Most of the cases that I found are having fail response from unknown URL, but for my case, I am getting fail response from a known URL like yours.
Using Laravel as backend, and have added the headers to allow CORS.
Instead of using HttpClient from ‘@angular/common/http’, I used the ionic-native HTTP plugin.
HTTP from ‘@ionic-native/http/ngx’
That solved my problem.
Please go through this link to implement it https://ionicframework.com/docs/native/http
This error happens in ios. The problem is that you don’t have permissions to access to the url reference, you can try to add the rights “allow” tags on the config.xml but didn’t work for me.
The solution is to not use a URL that reference to the file system or a blob. For example you can transform the blob or the svg or whatever image format you have to base64 url like:
(In my case the “image” was a svg tag like <svg …>, but you can take an image and parse it to base64 and will work, just take care or add the proper mimetype like “data:image/svg+xml;base64,” for svg.)