App ok on browser but show just the header on device


#1

Hi,

I have a small ap that shows a list of cars with description and image.

Running on browser ( ionic serve ) all is ok but after build the apk with build.phonegap.com and deploy it to the device, the app is opened but shows only the header.

The data is coming from a local json file…

Thank you


#2

I notice sometimes that permissions aren’t always guessed correctly ionic especially if the device has a granular security manager like Xpose or Knox.

Do an reboot the device then do an adb logcat and see what errors are popping up.


#3

Thank you.

I’ll try it.


#4

It’s necessary to define an specific file path on Android

var url = “”;
if(ionic.Platform.isAndroid()){
url = “/android_asset/www/”;
}