Ionic 2 - Beta 6 - Ionic run android shows a white screen


#1

I went through the many discussions around this topic but I didn’t find a solution to my problem.

When I run ionic run android command, it says build successful and launch success but shows a blank white screen on the device.

On my index.html when I commented this line out - <base href="/"> it started working. But all the image files were broken.

I’m using Ionic 2 - Beta 6.
My device is Samsung Galaxy S6, Android version 6.0.1

Is there a proper fix for this?


#2

The base ref breaks things as it change how content should be loaded.

There are a few options you could try:

  1. <base href="./"> : make the base url the current directory. This should make things work as expected, though we have not fully tested this out.

  2. Exclude the base tag all together. We have not added to the starter project for a reason.