Sencha Touch 2 application doesn't work with PhoneGap build

  • 1
  • Question
  • Updated 7 years ago
  • Answered
I have trouble building my Sencha Touch 2 application with PhoneGap Build. The ID is 185015. When I open the app on my Android 2.1 phone, it says it couldn't connect to the app at file:///android_asset/www/index.html (or something like that).
Photo of Michael Parrott

Michael Parrott

  • 8 Posts
  • 0 Reply Likes

Posted 8 years ago

  • 1
Photo of RAMAKRISHNA M

RAMAKRISHNA M

  • 9 Posts
  • 1 Reply Like
try this way do sencha app build native . After generating the apk file unzip it and in assets--> www--> directly run index.html in safari if the app is running fine then make a zip of all the files and upload it to phonegap build
Photo of Michael Parrott

Michael Parrott

  • 8 Posts
  • 0 Reply Likes
Well I can't use the sencha command, for my app I just removed the microloader and instead included sencha-touch.css, sencha-touch.js, and app.js in my index.html. It still worked fine in my browser, no warnings or errors in the console.
Photo of RAMAKRISHNA M

RAMAKRISHNA M

  • 9 Posts
  • 1 Reply Like
try to give something like this in android

super.loadUrl("file:///android_asset/www/index.html",5000);
Photo of Michael Parrott

Michael Parrott

  • 8 Posts
  • 0 Reply Likes
I've just been developing in Notepad++ and uploading the JS/CSS files to PhoneGap Build. If I managed to get the app running on another person's Android phone, does that mean that my phone is just timing out when it tries loading all the code? My phone is pretty old, and it worked on a Samsung Galaxy S2.
Photo of RAMAKRISHNA M

RAMAKRISHNA M

  • 9 Posts
  • 1 Reply Like
similar issue you can find here

http://community.phonegap.com/nitobi/...
Photo of Michael Parrott

Michael Parrott

  • 8 Posts
  • 0 Reply Likes
Works for me!
Photo of Zahir

Zahir

  • 3500 Posts
  • 40 Reply Likes
Due to the thread inactivity, this issue is now closed.
Create a new issue if you have any other problem with PhoneGap Build.
Thanks

This conversation is no longer open for comments or replies.