After upgrading the PhoneGap library to Cordova, you must update the Hybrid Web Container project.
#ifdef USE_CORDOVA #ifdef CORDOVA_FRAMEWORK #import <Cordova/CDVViewController.h> #import <Cordova/CDVContacts.h> #else #import "CDVViewController.h" #import "CDVContacts.h" #endif #endif
#ifdef USE_CORDOVA if ( [super respondsToSelector:@selector(application:didFinishLaunchingWithOptions:)]) [super application:[UIApplication sharedApplication] didFinishLaunchingWithOptions:launchOptions]; #endif
#ifdef USE_CORDOVA if ( [super respondsToSelector:@selector(applicationDidBecomeActive:)]) [super applicationDidBecomeActive:application]; #endif
#ifdef USE_CORDOVA if ( [super respondsToSelector:@selector(applicationWillResignActive:)]) [super applicationWillResignActive:application]; #endif
#ifdef USE_CORDOVA if ( [super respondsToSelector:@selector(applicationWillTerminate:)]) [super applicationWillTerminate:application]; #endif
#ifdef USE_CORDOVA if ( [super respondsToSelector:@selector(onAppDidBecomeActive:)]) [super onAppDidBecomeActive:nil]; #endif
if ( [super respondsToSelector:@selector(onAppWillEnterForeground:)]) [super onAppWillEnterForeground:nil];
if ( [super respondsToSelector:@selector(onAppDidEnterBackground:)]) [super onAppDidEnterBackground:nil];
[CDVContacts setContactsAccessDelegate:self];