Hello I have a little problem. I finished my app recently and everything worked perfectly on ionic serve.
When i builded apk by ionic cordova android run/build apk has finished building.
But when i installed it on phone it started to behave weirdly.
It showed me my welcome screen(but it took too much time) then when i clicked button it showed me white page.
But when i click icon(i dont see it, just know where is it) white screen dissapear and show my my page and this situation repeats couple times. Depends on phone after couple time there is no problem with that. I dont know the reason of that behaviour.
Can someone help me?
Did you remote debug the problem on the device already?
Follow these instructions here to debug the problem in Safari dev tools:
https://ionic.zone/debug/remote-debug-your-app#ios
Follow these instructions here to debug the problem in Chrome dev tools:
https://ionic.zone/debug/remote-debug-your-app#android
Look at the console and network tabs for errors.
1 Like
Can you share what the problem was?
I was asigning date to (date)variable or in specific situation - String text.
Then in html page I was using: {{date | date:‘dd/MM/yyyy H:mm’}} and when there was String text it showed white page.
I wonder why this error didnt showed in dekstop console
Probably some browser magic that is available on desktop but not on device.
I highly recommend avoiding JavaScript Date
objects and anything relying on the JS i18n library (such as the stock Angular date
pipe). It is trivial to roll your own date formatting pipe with date-fns and much more robust.