when i use ionic build android it works veryy slow and booting time is almost 30 sec to 1 minute, but when i build by ionic build android --prod its not working plz help me out … and i m also using google map
Nobody can do much with “it’s not working”. Please post code and error messages, and not as screenshots.
no any error message i build my apk with ionic build android --prod and when i run in the device it shows white screen only after splashscreen
There will almost certainly be an error message - have you set up live debugging using something like chrome://inspect/#devices
whilst the application is running on the device? Also make sure to reload the application whilst the debugger is active to make sure you don’t miss any startup errors before the debugger attaches.
error :-
Failed to load resource: net::ERR_FILE_NOT_FOUND
cordova.js:107 Uncaught Error: cordova already defined
main.js:7 Uncaught Error: Cannot find module "./app.module.ngfactory
Not sure where the Cordova error would be coming from - have you defined all of the pages in your app in the entryComponents
of app.module.ts
?
Ya. its works fine when i build by ionic build android.