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

Ionic-4-rest-api-calls-not-working-on-the-device

$
0
0

@OmkarHLT wrote:

Hello Team Struggling to get the API working on android Device tried the below ways still no help.

Have my release in 2 days but stuck with this issue

Tried

  1. Updated the config.xml with allowed and access tags
  2. updated api to allow access from same origin
  3. Updated the cordova plugins nothing seems working
    4, Added to index file

Config.xmL

<preference name="CordovaWebViewEngine" value="CDVWKWebViewEngine" />
 <access origin="*" />

   <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" /

Index.html

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


Cnfiguration Details

 cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : android 7.1.4
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.0.0, (and 7 other plugins)

System:

   NodeJS : v10.7.0 (C:\Program Files\nodejs\node.exe)
   npm    : 5.3.0
   OS     : Windows 10

ionic (Ionic CLI)             : 4.6.0
   Ionic Framework               : @ionic/angular 4.0.0-beta.7
   @angular-devkit/build-angular : 0.7.5
   @angular-devkit/schematics    : 0.7.5
   @angular/cli                  : 6.1.5
   @ionic/angular-toolkit        : not installed

Error [Error screen](https://i.stack.imgur.com/kQGm5.png)

Please Help

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49229

Trending Articles



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