Error when building and signing for release


#1

Hello everyone!

I am facing a strange problem while trying to release my app.
Build goes fine also apk signing.
I try my apk on my android device and it shows a strange error:

deviceready has not fired after 5 seconds. cordova.js:1223
ERROR
Error
main.js:1362

Please any help because I have been struggling a lot with this issue.

Thanks in advance!


#2

Did you remote debug the problem on the device already? 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.


#3

yes I did and I already mentioned the error


#4

How did you build your app?


#5

ionic build android --release
jarsigner
zipalign

while building there is not any error


#6

ohhh also something else.
at network cannot get core.es5.js.map
this used to happened also in debug mode but app works perfect


#7

Add --prod here at the end to optimize the build for production.


#8

may this fix the error


#9

It is the correct way to deploy an app, so maybe. It makes the app start much faster, so the “5 seconds” threshold should not be hit any more. It also shows if there are any deeper problems with your app/code.


#10

6 posts were split to a new topic: Errror: Failed to load resource : url


Errror: Failed to load resource : url
Errror: Failed to load resource : url
#11