Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49184

I can't connect to my API REST from android emulator

$
0
0

@fcoaldunate wrote:

My application is working in IOS emulator, but when I try test in android emulator don't work the requests, this is the error:

{"data":null,"status":-1,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null]...

I have this in my config.xml

<access origin="*"/>
<allow-intent href="*"/>
<allow-navigation href="http://*/*" />

I have this in my AndroidManifest.xml

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

and I have this meta in my index.html

<meta http-equiv="Content-Security-Policy" content="default-src *; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; style-src 'self' 'unsafe-inline' *">

I am very frustrated trying different solutions without success. can anybody help me?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>