Does cocos2d-x made ios in-app purchase surport? or, how to make it by myself?
thanks!
Does cocos2d-x made ios in-app purchase surport? or, how to make it by myself?
thanks!
hello, cocos2d-x is a pure game engine, it doesn’t support iap.
iap should be done by the game self, and iap depends platforms, different platform has different sdk.
@Sheng Yuan
I guess you’re talking about apple IAP.
Please refer to CocosDenshion/iphone/SimpleAudioEngine.mm, this file shows how to call objc interfaces in c++ code.
You can use the same approach to invoke apple IAP interfaces in cocos2d-x game
thank u for your replies.
thank u, Wang.
BTW, my title mentioned that ios iap is what i was talking about:)
Walzer Wang wrote:
@Sheng Yuan
I guess you’re talking about apple IAP.
Please refer to CocosDenshion/iphone/SimpleAudioEngine.mm, this file shows how to call objc interfaces in c*+ code.
You can use the same approach to invoke apple IAP interfaces in cocos2d-x game
If I understand it correctly, we can directly call IAP UI with c*+ if develop on iOS. So if we do it on another platform, we need to follow its rule and api.
Please correct if i’m wrong.
Thanks for this info. I was wondering the same thing and am new to cocos2d.
I also need to do IAP for Android – does anybody have any pointers for that as well? I’m familiar with the iOS protocols, but not Android.
My first app is very simple…it’s an app for iOS/Android with embedded mp3 files to play with a nice interface. Any pointers on that topic as well would be awesome. Thanks in advance.