In-App Purchase plugin with Cordova 1.5

496 views
Skip to first unread message

Umut Aydin

unread,
Apr 3, 2012, 6:25:41 AM4/3/12
to phon...@googlegroups.com
Hello everyone,

I have completed these tasks at https://github.com/phonegap/phonegap-plugins/tree/master/iPhone/InAppPurchaseManager to install In-App Purchase plugin but when I hit run this error shows up:

"PGPlugin.h" file not found   

As far as I know I should add something into Plugins section in Cordova.plist file but there is no task for it in README file.

Any idea?

Thanks.

Umut Aydin

unread,
Apr 3, 2012, 8:46:46 AM4/3/12
to phon...@googlegroups.com
Of course they have changed file names when they have move into Cordova version.
Here is the solution:
Change all Phonegap related file references with Cordova versions in header files:

/*
#ifdef CORDOVA_FRAMEWORK
#import <Cordova/CDVPlugin.h>
#else
#import "CDVPlugin.h"
#endif

#ifdef CORDOVA_FRAMEWORK
#import <Cordova/NSData+Base64.h>
#else
#import "NSData+Base64.h"
#endif

#import "SKProduct+LocalizedPrice.h"

@interface InAppPurchaseManager : CDVPlugin <SKPaymentTransactionObserver> {

}
*/

--
You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
phonegap+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
 
For more info on PhoneGap or to download the code go to www.phonegap.com



--
Best Regards,
Umut Aydin


Reply all
Reply to author
Forward
0 new messages