I have the same issue with Android as well. My HTC m7 will return 0 when I ask for the same info in platform ready in some occasions (not always). We have previously also experienced cases where width and height was swapped around even if the app had been set to be portrait only, so we always check if the returned width is smaller than the height and return the smallest.