Moodle for mobile

moodle apk doesn't work

 
Picture of behnaz ranjbar
moodle apk doesn't work
 

hi every one;

finally i could build an apk of my app from android studio,

i installed it successfully on my phone but whenever i try to open the app, after 4 or 5 seconds white screen it sticks to splash screen of moodle (not my own splash screen) and stays there until i close the program

do you have any idea?

 
Average of ratings:Useful (1)
Picture of Dani Palou
Re: moodle apk doesn't work
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi,

sorry for the delay in answering, it's been some crazy months lately.

Please check the Javascript console to see if there's any error in there.

https://developers.google.com/web/tools/chrome-devtools/remote-debugging/

Cheers,

Dani

 
Average of ratings: -
Picture of behnaz ranjbar
Re: moodle apk doesn't work
 

thanks for your response

i didn't see this tool before but as i understand it is just for webapp?

but my problem isn't that cause when i run ionic serve it goes completely right just when i run the app itself in my iphone i have this problem now:

white screen then splash screen then white screen again, then white screen again and then a message :unfortunately moodle has stopped.

 
Average of ratings: -
Picture of Dani Palou
Re: moodle apk doesn't work
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi,

that tool is only for webapps, yes. You can also check the Android log to see if the app is raising any exception in there.

Please make sure you've installed all Cordova plugins in your development environment.

Cheers,

Dani

 
Average of ratings: -
Picture of behnaz ranjbar
Re: moodle apk doesn't work
 

hi,

i watched the logcat IMO the most important error was this line:

07-26 09:14:19.941 22894-22894/com.moodle.moodlemobile E/ViewRootImpl: sendUserActionEvent() mView == null
    sendUserActionEvent() mView == null

do you have any idea?

and about the cordova plugins i ran npm install and cordova prepare in pre settings so i think they should be installed , this my cordova plugins list:

com-darryncampbell-cordova-plugin-intent 1.0.4 "Intent Shim"
cordova-clipboard 1.1.0 "Clipboard"
cordova-plugin-app-event 1.2.1 "Application Events"
cordova-plugin-badge 0.8.7 "Badge"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-customurlscheme 4.3.0 "Custom URL scheme"
cordova-plugin-device 1.1.6 "Device"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-opener2 2.0.19 "File Opener2"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-globalization 1.0.7 "Globalization"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-local-notifications-mm 1.0.10 "LocalNotification"
cordova-plugin-media-capture 1.4.3 "Capture"
cordova-plugin-network-information 1.3.3 "Network Information"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-whitelist 1.3.2 "Whitelist"
cordova-plugin-zip 3.1.0 "cordova-plugin-zip"
cordova-sqlite-evcore-extbuild-free 0.9.7 "Cordova sqlite storage - free enterprise version with Android performance/memory improvements and extra features for PhoneGap Build"
ionic-plugin-keyboard 2.2.1 "Keyboard"
nl.kingsquare.cordova.background-audio 1.0.1 "background-audio"
phonegap-plugin-push 1.9.2 "PushPlugin"


and for your more information when i run

ionic cordova run android i get such a error at the end:

Error: spawn EACCES

[ERROR] An error occurred while running cordova run android (exit code 1).

thanks


 
Average of ratings: -
Picture of behnaz ranjbar
Re: moodle apk doesn't work
 

i also compared my config.xml plugins list with here as you mentioned:

https://github.com/moodlehq/moodlemobile2/blob/v3.5.0/config.xml#L94

they are same

 
Average of ratings: -
Picture of behnaz ranjbar
Re: moodle apk doesn't work
 
i wanna add this error too that i saw in logcat but i don't how important it is:
07-26 12:54:50.491 21415-22601/com.moodle.moodlemobile E/AndroidRuntime: FATAL EXCEPTION: pool-2-thread-3
    Process: com.moodle.moodlemobile, PID: 21415
    java.lang.IllegalAccessError: Method 'void android.support.v4.content.ContextCompat.<init>()' is inaccessible to class 'com.google.android.gms.iid.zzd' (declaration of 'com.google.android.gms.iid.zzd' appears in /data/app/com.moodle.moodlemobile-1/base.apk)

 
Average of ratings: -