Blog

All the latest news and insights on PhoneGap
Filtering posts by author: Jesse MacFadyen

JavaScript : relaxing equality

Recently I received a pull request for an issue in cordova.exec on the Windows platform. It seems that a plugin result of type NO_RESULT would not be handled correctly, because NO_RESULT was actually defined as 0, and we were loosely checking along the lines of if(pluginResult.status){...} The pull request added...

Windows Phone + Cordova Quick Tip

When javascript doesn't seem to be working, I usually hack in a quick error handler. If you add this somewhere at the top of your html page, you should see any errors that occur listed in Visual Studio's output window. window.onerror = function(errMsg,fileName,ln) { window.external.Notify("Error : " + errMsg +...

BoomChik Ba-Boom Boom Chik …

BoomChik is available in the Windows store! BoomChik on Windows Store The code is virtually identical to the code running on the iPad, and soon they will be exactly the same. Time to tap to the beat of your own drummer. Note, I have many more features I would like...

Apache Cordova and Windows Phone 8

January 7, 2013 Update: We are live! Apache Cordova 2.3.0 with full support for Windows Phone 8 is available. Here’s the quick list of steps to follow to get started: Download Apache Cordova 2.3.0 Watch the 5' tutorial on Channel9 Read the new 'Getting Started' Guide   Over the last few months, we...

Windows Store apps and the IE10 DOM

Windows 8 fully embraces web-tech as a means to develop applications for the windows store, however, there are a few things that you should be aware of, along the way. You can use your own JS libraries, or jQuery, or whatever you prefer ( assuming it behaves well in IE10...

Windows 8 Security and Dynamic Code

Recently while working on bringing Apache Cordova to Windows 8 I came across an issue with dynamic content.  The Apache Cordova mobile-spec project, which defines all of our tests,  has some tricks for loading a configurable cordova-js file without having to modify every html page.  It seems the security model does not...

Introducing HyperLab

HyperLab was approved today by Apple and is now available in the app store. HyperLab did not include any documentation, as I was in a rush to get it submitted, so I will explain how to use it here. Documentation HyperLab lets you sync files to your device using iTunes...

Box2D on WP7 Apache Cordova 1.7.0rc1

Here's a simple demo of Box2D javascript running in a Cordova app on a Samsung Focus S. Earlier this week at the Microsoft hosted ‘port your app event', Ben Davey from mobilenationhq.com did the work of putting this into a Cordova app, which he described as “just a little bit...

PhoneGap 1.4.0rc1 is commited

Just pushed my updates to github, and they are making their way into Apache git. You can get the latest code here: https://github.com/purplecabbage/callback-windows-phone Changes include fixes for XHR to local files, + fixes to allow jQM single/multipage apps function correctly. Here's a short video demonstrating the updated Compass API. ##...

PhoneGap for Windows Phone Dissected

This is not a postmortem, per se, as we will continue to develop and support PhoneGap for Windows Phone, consider this more of a milestone postmortem. We are reaching the end of our engagement with Microsoft so I thought I would take the time to reflect on the overall experience...

Announcing PhoneGap for Windows Phone Mango

Over the last month and a bit, Nitobi has been working closely with Microsoft to bring PhoneGap to WP7 devices. I am happy to say that it’s now here, and ready for beta exposure. The Genesis of PhoneGap for Windows Phone 7 Our starting point was the excellent work of...

My blog is moving

My Blog activity will now happen over at my own site, to relieve the overload on nitobi.com. Check it out at http://www.risingj.com Cheers! › Visit the original post

PhoneGap-alytics

Do you want to gain marketing intelligence and information on how users interact with your PhoneGap app? You need this plugin! Introducing the Google Analytics for PhoneGap plugin. Over the last couple weeks, Joe aka @infil00p and I have been working on some exciting new plugins. We wanted to provide...

Supporting Custom URLs in PhoneGap-iPhone apps pt 1 of 2

I recently reworked some of the launchOption / handleOpenURL code in PhoneGap iPhone. The commit is here. You can expect these changes to be included in the next official release 0.9.5 later this month, however these are not considered PhoneGap functions, so I thought I would explain how this all...

ekiben

I posted a simple view swapper demo for webkit mobile using XUI + GloveBox. Want a quick layout for your PhoneGap app? Go and get the code. › Visit the original post

Introducing iPhone Cleavage

So if you want to make an iPhone app using your HTML/CSS/JavaScript skills, what do you use? PhoneGap! obviously. If you want to add some iPhone native controls, screens, whatever… PhoneGap Plug-ins seem like a fairly easy path, even though they are still largely undocumented, and unknown to most, at...

iPhoneGap Plugs

Okay, in your phonegap application in XCode, ( Without EVER having to touch the PhoneGapLib ) right click the plugins folder and select Add/NewFile/ObjectiveCClass Call your new class : TestPlug Paste the following code into the .m + .h files: objc // In the .h file ….. # import #...

Phonegap contributor agreement

Over the weekend, I submitted the Nitobi Contributor Agreement to the PhoneGap mailing list and created a minor sh!t-storm.  I did a few things wrong and as a result it became obvious that our intent was left unclear. This post is my attempt at reaching clarity. Many of the things...

PhoneGap iPhone Tutorial – A good place to start

PhoneGap has been getting a lot of attention lately, and also a lot of questions on the mailing list about where to get started. I recently built a small PhoneGap app for iPhone that helps to demonstrate PhoneGap functions. The application is divided into multiple pages, and each page focuses...

PhoneGApp Store Approval

I just received word from Apple that : Apple has given PhoneGap a technical analysis , and PhoneGap does not violate the Terms & Conditions of the App Store. Apple will review PhoneGap applications based on their own merits and not on their use of PhoneGap. What this means: There...

PhoneGap for iPhone exposed

Earlier this week I attended the Apple iPhone Developers Tech Talks in Seattle. The event was free and by invite only and you had to have an app in the app store, or be very close to having one to be invited. This meant that the content of the talk...

Running jQTouch in PhoneGap

Last week there were some discussions about the poor performance of jQTouch in PhoneGap apps, so I dug into it. First I had to verify that this was something we were doing in PhoneGap and not a difference between Mobile-Safari and the UIWebView control which we use in PhoneGap. I...

PhoneGap Static lib for iPhone-XCode

I recently spent some time evaluating the iPhone branch of PhoneGap and have made some changes that I think will make things easier to develop. One of the key issues that I wanted to address was that PhoneGap existed as a repository and anyone that made an application with it...

Image Caching with the HTML5 Canvas

Lately I have been working on an iPhone app ( using PhoneGap of course )  and needed to implement image caching on the client with javascript. I am already using an SQLite database in mobile safari, so I decided I could store images in Base64 in the DB.  I was...

YuTuplr – Getting Started.

Lately in my spare time I have been quietly plugging away at building a simple YouTube uploader application in Air. Nitobi encourages us to spend part of our time on our own pet projects, as well as community interaction and contributing to open source initiatives.  I have been working on this...

The race to the MegaTweet

The day started like any other day, sitting tired on SkyTrain on my way to work, when I happen to catch the headline on the newspaper of the commuter in front of me. “Kutcher’s race to a million twitter followers.” With peaked intrest I pulled out my iPhone and read...

Overlay.tv – YouTube Uploader Pt.2

Integration with Overlay’s services was somewhat easier. They have a published API but unfortunately for this project, it is intended for use on other websites, so it did not make sense in a client application. Overlay also has a flash movie that they use in their pages to support viewing,...