Practical tutorial for building apps using PhoneGap Build

  • 2
  • Idea
  • Updated 5 years ago
  • Not Planned
http://abiro.com/tutorials/phonegap/

The tutorial goes through building a project from scratch. It's still in draft, so it might contain a few "bugs", but the overall procedure is there. Best case you'll learn a thing or two, or at least get a chance to laugh mockingly.

It's very much based on real-life experience. That said, it might not necessarily fit your development process to the letter. Especially in a larger setting with more people involved (using versioning, separate test staff, longer lead times etc) this might not apply as-is.

The tutorial will stay at this URL, but will be revised during the week, and hopefully be completely done during the weekend. I'd be happy to receive comments on it meanwhile.

Regards,
Anders
Photo of Anders Borg

Anders Borg

  • 329 Posts
  • 12 Reply Likes

Posted 5 years ago

  • 2
Photo of Anders Borg

Anders Borg

  • 329 Posts
  • 12 Reply Likes
Not a single comment? That sucks :).
Photo of Adrian De Cleir

Adrian De Cleir

  • 3 Posts
  • 0 Reply Likes
I tried commenting but i keep getting a captcha error...

What I wrote...

"Thanks, some nice simple instructions and explanations there,

The quicker deployment bit looks handy, I must give it a go, Im just hoping it doesnt take way the simplicty of phonegap build if we're going back into command lines and local installations."
Photo of Anders Borg

Anders Borg

  • 329 Posts
  • 12 Reply Likes
Frankly it becomes simple _due_ to remote build.

It would probably be easy to make a remote build command using the PGB API, that doesn't need Node.js nor phonegap.
Photo of Anders Borg

Anders Borg

  • 329 Posts
  • 12 Reply Likes
By the way, I'm not using the command line per se. I have a bl.bat and a br.bat (build locally (for Android) and build remotely (for iOS and Android) respectively), and I just "kick" them from Windows Explorer.

The commands:

bl.bat: call phonegap run android (that uses adb to install it on a device)

br: call phonegap remote build ios (or android; doesn't matter, as both are built automatically)
Photo of Walter Sargent

Walter Sargent

  • 1 Post
  • 0 Reply Likes
Thank you! This is exactly what I was looking for.
Photo of Anders Borg

Anders Borg

  • 329 Posts
  • 12 Reply Likes
I've updated the tutorial and template. The config.xml is still for 3.7.0 (will update to 5.x when all handy plugins work there), but at least it invokes plugins from npm, and I added "no-bounce" for iOS.

http://pgicons.abiro.com/ has also been updated, providing images for the platforms Cordova/PhoneGap currently support, as well as App Icons for App Store and Google Play.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@redsmurph,
excellent work. Thanks for posting it. I will add it to my collection of bookmarks. I'm going to post this right now to the appropriate forums.
Jessse
Photo of Anders Borg

Anders Borg

  • 329 Posts
  • 12 Reply Likes
The tutorial and template have been updated to use cli-5.2.0 and plugins from npm.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@redsmurph, thanks for updating. I still need to update mine. I may not get time until Mid December.

Jesse