Quantcast
Channel: Moodle for mobile
Viewing all articles
Browse latest Browse all 8344

Re: Cannot Connect to my Moodle Page with self built MM2

$
0
0
by Marc Rominger.  

finally I figured out what was the Problem, all that you have to do is:

Quick fix is to modify the block starting at LocalNotification:492 with the following:

webView.getView().post(new Runnable(){
  public void run(){
    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
      webView.sendJavascript(js);
    } else {
      webView.loadUrl("javascript:" + js);
    }
  }
});

I also got problems with multiple dex files, fixed this by adding this to /moodlemobiledirectory/platforms/android

configurations {
     all*.exclude group: 'com.android.support', module: 'support-v4'
}


by the way, I have to correct myself, the plugin attribute mentioned above should be

nl.x-services.plugins.launchmyapp --variable URL_SCHEME=moodlemobile
 like it is described here

https://docs.moodle.org/dev/Setting_up_your_development_environment_for_Moodle_Mobile_2

I hope this helps


Viewing all articles
Browse latest Browse all 8344

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>