Update AppDelegate.m

Phonegap 3.0 support