Tyler Frankenstein's Drupal Association Membership Tyler Frankenstein GItHub Link

phonegap

PhoneGap JavaScript Console Log Debugging

When compiling an app to your phone over USB using the PhoneGap (Cordova) Command Line Interface (CLI), it can be handy to view the JavaScript console.log(). Run this terminal command after your app is running in debug mode:

adb logcat

That will get you lots and lots of debug information. Chances are that's too much to handle, and you'll want to filter it. Go ahead and stop logcat, and try this command instead:

adb shell logcat | grep 'Web Console'

Build a Mobile App to Geo Locate Nearby Places with Drupal

In this tutorial (for DrupalCamp Ohio 2014) we'll explore how to build a mobile application and website that can geo locate places near our current position. The nearby location results will be displayed on a map, and will allow us to click on a result item to view its complete details.

The website will be powered by Drupal 7. The mobile application will be built using DrupalGap, which is powered by PhoneGap and jQuery Mobile. Let's get started!

Build a Mobile App to Sell Products with Drupal

This tutorial describes how to create a website and mobile application to sell physical products. Customers on a desktop or laptop computer will be able to purchase the product through the website, much like a typical e-commerce store.

Once we have built the mobile application, customers who have downloaded and installed the mobile app onto their Android or iOS (iPhone, iPad) device will be able to purchase the product as an In-App Purchase.

For this example website and mobile app, we're going to sell bottles of beer. *Cough* - Please don't actually sell beer without first getting permission from your local Big Brother.

The main 3 sets of tools we will utilize are:

This tutorial was inspired by this Session from DrupalCon Austin 2014. If you're new to any of these tools mentioned above, please watch the video for an introduction. Otherwise, let's get started!

Apple Mach-O Linker Error - missing required architecture arm64

When trying to "Product -> Archive" my PhoneGap project in xCode, I was getting this error:

missing required architecture arm64

To fix this, I went to the "Build Settings" for my project, and removed the arm64 from the Valid Architectures. That's it! Thanks to Joseph Ross for his continued iOS debugging skills.

Build a Mobile App to Geo Tag a Photo

In this tutorial we'll explore how to build a mobile application that can take a photograph and save it onto a website with the current latitude and longitude coordinates.

The website will be powered by Drupal 7. The mobile application will be built using DrupalGap, which is powered by PhoneGapjQuery Mobile and Drupal Services.

Did I mention all of this can be accomplished by writing zero lines of code? Well then, let's get started!

xCode - Apple Mach-O Linker Error - Linker command failed with exit code 1

With PhoneGap 2.9.0 (Cordova), while trying to compile in xCode to build a mobile application for release, I receive this error:

Apple Mach-O Linker Error - Linker command failed with exit code 1

To fix this problem, this worked for me in xCode:

Drupal - Build a Mobile App Game to Learn Words from Another Language

In this tutorial we'll explore how to make a simple mobile application game with DrupalGap for a Drupal 7 website. Our game will help us learn words in another langauge.

We'll use Drupal to manage our words and their translations. Since Drupal comes with a default content type called Article, we'll use that for our words.

PhoneGap Android ./create: line 66: javac: command not found

When trying to run this terminal command for PhoneGap in Ubuntu:

cd ~/Desktop/phonegap-2.7.0/lib/android/bin
./create ~/Desktop/phonegap-code/MyProject com.mycompany.myproject MyProject

I received this error:

./create: line 66: javac: command not found

To fix this, I had to install this (from Synaptic Package Manager):

openjdk-6-jdk

I had to remove the bogus directory that was created on the first creation failure:

rm -rf ~/Desktop/phonegap-code/MyProject

Now, re-run the create command:

An unexpected error occurred: ANDROID_BIN="${ANDROID_BIN:=$( which android )}" exited with 1

With PhoneGap, everytime I try to create a new Android project from the terminal, I get this annoying error:

An unexpected error occurred: ANDROID_BIN="${ANDROID_BIN:=$( which android )}" exited with 1

Luckily, this workaround always seems to work for me:

source ~/.bash_profile

After sourcing my bash profile, then re-running the create command, it completes successfully.

Drupal - Build a Mobile App to Geo Locate Node Content

In this tutorial we will explore how to build a mobile application for Android (iOS, iPhone, iPad) using PhoneGap and jQueryMobile that can be used to geo locate node content from a Drupal website. The mobile application will lookup the user's current location, then ask Drupal for a list of content closest to that user's location.

Tutorial Components

Pages

Subscribe to RSS - phonegap