UI5 Application converted to .apk using PhoneGap Build when installed on Android shows blank screen.

  • 1
  • Question
  • Updated 4 years ago
I have converted an SAPUI5 application to .apk format using phonegap build . The app gets installed successfully on the Android device but then when I run the app it shows just a blank screen and the application runs perfectly on browser . So can you help me out with the issue?

And the folder structrure of WebContent is as shown in the below image .
Photo of Mana

Mana

  • 68 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Mana

Mana

  • 68 Posts
  • 0 Reply Likes
can the apk build from phoneGap build be used on any Android OS or is there some specification like it requires Andoird 4.4 or above or something?
i mean which SDK is used internally?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
If nothing is set, minSDK=14 is assumed with current versions of PGB.
You can set the androidMinSDK to another, higher value, though.
Photo of Mana

Mana

  • 68 Posts
  • 0 Reply Likes
So all in all this .apk would not run on the devices that have Android Os less than 4 . Right?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
That's correct, yes
Photo of Mana

Mana

  • 68 Posts
  • 0 Reply Likes
ok Can you help me in solving my doubt related to Javascript?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
What doubt do you have with javascript?
Photo of Mana

Mana

  • 68 Posts
  • 0 Reply Likes
Where should the splash screen images be placed ? Is it ok if I place the images inside the Webcontent folder?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I have no idea what your "Webcontent folder" is. But you can place your icons and splashes in any directory you wish (as long as you're building with PGB). The only requirement is that the paths to those files in your config are correct.
Photo of Mana

Mana

  • 68 Posts
  • 0 Reply Likes
ok . Thanks
Photo of Mana

Mana

  • 68 Posts
  • 0 Reply Likes
Can You just check my config once whether it is correct or not?
This is the code of my config:-



Photo of Mana

Mana

  • 68 Posts
  • 0 Reply Likes
What has to be written in the title which is shown in the below image for adding certificated(signing key) for ios development .
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Can't tell. It validates, but I know neither your app's functionality nor the directory structure, so I can't say if it's correct for your app.
Photo of Mana

Mana

  • 68 Posts
  • 0 Reply Likes
ok.
Photo of Mana

Mana

  • 68 Posts
  • 0 Reply Likes
I have made the same app for ios using phonegapbuild but now its showing a blank screen when it runs
I have added whitelist plugins and I have also added cordova.js.
Splash-screen also appears but then it shows a blank screen .
Than why does it happen like this?