Phonegap mobile application build error

Phonegap mobile application build error

by Pooja Jain -
Number of replies: 4

We are trying to brand the mobile application of moodle and followed the guide.

http://es.slideshare.net/juanleyva/creating-a-custom-moodle-mobile-app-moodle-moot-spain-2014

It is successfully build apk, app shows proper icon, splash screens, name etc and installs.

When running the app it shows following error.

Uncaught syntaxerror: Unexpected Token

file: file:///android_asset/www/index.html
Line 2

Kindly guide

Attachment IMG_1510.JPG
Average of ratings: -
In reply to Pooja Jain

Re: Phonegap mobile application build error

by hadi behrouzian -
hi 

You not delete the line

"demo_sites": [{"key": "student", "url": "http://www...

of config.json file

In reply to Pooja Jain

Re: Phonegap mobile application build error

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

this seems a problem in your config.json file or a javascript bug you introduced

Regards, Juan

In reply to Juan Leyva

Re: Phonegap mobile application build error

by Pooja Jain -

Thanks, I did the entire process again and was able to launch the app. Now working on theme... Thank you for the reply and the slideshow! 

In reply to Pooja Jain

Re: Phonegap mobile application build error

by Rekha C -

Hi Juan, Pooja,

I am getting  network error file ///android_asset/www/index.html 

I am using https://build.phonegap.com, generated android apk. 

What am i doing wrong?

Rekha