App gets frozen when running --prod mode in Android

#1

Hi guys,

When I run the app on device in debug mode everything works fine, but when I build with --prod and try to run it gets frozen and never goes after the splash screen.

I think that might be something related to Facebook, my app has Facebook Login.

01-14 16:11:49.014 5251-5251/? E/WebContentsProviderReceiver: onReceive - not approved application
    
    --------- beginning of system
01-14 16:11:49.484 855-1058/? E/MARsDBManager: updateDBAll : begin --size 3
01-14 16:11:49.554 855-1058/? E/MARsDBManager: updateDBAll : end
01-14 16:11:49.674 6891-6891/? E/ActivityThread: Failed to find provider info for com.facebook.appmanager.nekodirect
01-14 16:11:50.214 5312-5312/? E/Zygote: v2
01-14 16:11:50.224 5312-5312/? E/Zygote: accessInfo : 0
01-14 16:11:50.714 5329-5329/? E/Zygote: v2
01-14 16:11:50.724 5329-5329/? E/Zygote: accessInfo : 0
01-14 16:11:52.354 5385-5385/? E/Zygote: v2
01-14 16:11:52.364 5385-5385/? E/Zygote: accessInfo : 0
01-14 16:11:52.694 5385-5400/? E/SPPClientService: ShipBuild Binary : True
01-14 16:11:52.954 5329-5376/? E/GraphResponse: {HttpStatus: 400, errorCode: 100, subErrorCode: 33, errorType: GraphMethodException, errorMessage: Unsupported get request. Object with ID '181349075940707' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api}
01-14 16:11:54.154 5312-5422/? E/HealthAnalytics: [HAnalytics] checkMandatoryProperty(), property ordinal : 1 is mandatory, but key is empty.
01-14 16:11:54.154 5312-5422/? E/HealthAnalytics: [HAnalytics] checkMandatoryProperty(), property ordinal : 2 is mandatory, but key is empty.
01-14 16:11:54.154 5312-5422/? E/HealthAnalytics: [HAnalytics] checkMandatoryProperty(), property ordinal : 3 is mandatory, but key is empty.
01-14 16:11:54.154 5312-5422/? E/HealthAnalytics: [HAnalytics] checkMandatoryProperty(), property ordinal : 4 is mandatory, but key is empty.
01-14 16:11:54.154 5312-5422/? E/HealthAnalytics: [HAnalytics] checkMandatoryProperty(), property ordinal : 5 is mandatory, but key is empty.
01-14 16:11:54.154 5312-5422/? E/HealthAnalytics: [HAnalytics] checkMandatoryProperty(), property ordinal : 6 is mandatory, but key is empty.
01-14 16:11:54.154 5312-5422/? E/HealthAnalytics: [HAnalytics] checkMandatoryProperty(), property ordinal : 7 is mandatory, but key is empty.
01-14 16:11:54.234 5329-5412/? E/File: fail readDirectory() errno=2
    fail readDirectory() errno=2
01-14 16:11:54.244 5329-5412/? E/File: fail readDirectory() errno=2

And here is my project config:

± % ionic info                                                                                                                                                                !10

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.2.0
    Cordova Platforms  : android 6.3.0 ios 4.5.5
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 2.0.0
    ios-sim           : 6.0.0
    Node              : v8.11.3
    npm               : 5.6.0
    OS                : macOS
    Xcode             : Xcode 10.1 Build version 10B61

Plugins:

± % cordova plugin list                                                                                                                                                       !11
com.googlemaps.ios 2.7.0 "Google Maps SDK for iOS"
com.telerik.plugins.nativepagetransitions 0.6.5 "Native Page Transitions"
cordova-plugin-add-swift-support 1.7.2 "AddSwiftSupport"
cordova-plugin-android-permissions 1.0.0 "Permissions"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-console 1.1.0 "Console"
cordova-plugin-contacts 3.0.1 "Contacts"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-email-composer 0.8.15 "EmailComposer"
cordova-plugin-facebook4 3.1.0 "Facebook Connect"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-globalization 1.11.0 "Globalization"
cordova-plugin-googleplus 5.3.2 "Google SignIn"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.2.0 "cordova-plugin-ionic-webview"
cordova-plugin-linkedin 1.2.1 "LinkedIn"
cordova-plugin-mauron85-background-geolocation 2.3.6 "CDVBackgroundGeolocation"
cordova-plugin-media 5.0.2 "Media"
cordova-plugin-nativeaudio 3.0.9 "Cordova Native Audio"
cordova-plugin-nativegeocoder 3.1.2 "NativeGeocoder"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-streaming-media 2.2.0 "StreamingMedia"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.1 "SocialSharing"
cordova-sqlite-storage 2.5.0 "Cordova sqlite storage plugin"
es6-promise-plugin 4.2.2 "Promise"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-barcodescanner 8.0.0 "BarcodeScanner"
phonegap-plugin-push 2.1.2 "PushPlugin"
twitter-connect-plugin 0.6.0 "Twitter Connect"

Any word to help me solve this?

#2

If I were you, I would restart a fresh install of ionic cli, and npm install to reload the dependencies.
I had this type of problem, and getting my ionic up to date did the job

#3

Right, thanks,

What’s your Ionic CLI version right now?

As you can see mine is 3.20.0 and I just updated @ionic/app-scripts to 3.2.1

#4

I switched to ionic 4…