0

On localhost:8100 with ionic serve command, app is calling json data via web api (asp.net core backend that enabled CORS with origins http://localhost:8100) which is working fine. Now, I tested with both devapp on galaxy 9 and android emulator (ioniccordovaemulate android). Both shows the app's layout, but it does not fetch json data.

Does anyone know what the problem is or how to debug it on devapp/android emulator like I can do it on browser's console?

Vikasdeep Singh
  • 20,983
  • 15
  • 78
  • 104
bbusdriver
  • 1,577
  • 3
  • 26
  • 58

1 Answers1

1

Use chrome://inspect/#devices to debug Android devices/emulators and check below:

  1. See if there is any error in console logs (maybe JavaScript is breaking due to which this is happening)
  2. Check if API is getting called and getting response.

Check here official information for how to use chrome inspect devices.

Vikasdeep Singh
  • 20,983
  • 15
  • 78
  • 104
  • okay thanks. I tried what you said and added more stuff above. Any idea what is causing the issue please. – bbusdriver Sep 08 '18 at 09:04
  • @bbusdriver I have answered to your original question of how to debug. For this new requirement please create separate question. If my answer is helpful then please give upvote and accept it. – Vikasdeep Singh Sep 08 '18 at 10:09
  • Created another one Vic. – bbusdriver Sep 08 '18 at 20:11
  • @bbusdriver Please read my comment again. CREATE SEPARATE NEW QUESTION. Don't edit this. Keep it original. I have rolled back it original. Request you to create new question. thanks – Vikasdeep Singh Sep 08 '18 at 23:15
  • oops sorry forgot to link [this](https://stackoverflow.com/questions/52238715/ionic-does-not-fetch-rest-data-on-android-emulator-or-devapp) – bbusdriver Sep 08 '18 at 23:23