Libgdx robovm ios bindings for IAP

191 views
Skip to first unread message

De V

unread,
Feb 2, 2016, 8:59:32 AM2/2/16
to RoboVM

I want to implement ios In app purchase in my libgdx game. Im using Android studio


I'm searching for robovm ios bindings, but only that I found is https://github.com/BlueRiverInteractive/robovm-ios-bindings ,

but this bindings are deprecated. On suggested link https://github.com/robovm/robovm-robopods there isn't any binding for ios IAP.


Is there any other working binding for this purpose?


Thanks

Dom

unread,
Feb 3, 2016, 11:34:38 AM2/3/16
to RoboVM
Hi!

RoboVM has now a new RoboPod called Robo.Billing which allows you to implement cross-platform in app purchases in your app:

There is no documentation yet, but you can take a look at the sample app:

Take a look at the the core project of the sample. You can do all in app purchasing in the core project, you do not need to change any code in your iOS project.
If you also want to let Robo.Billing handle Android IAPs you will have to implement some code in onActivityResult or your launch activity (just check the android project of the sample).

Also don't forget to add the necessary dependencies to your build.gradle:
core: compile "org.robovm:robopods-billing-core:1.13.1-SNAPSHOT"
ios: compile "org.robovm:robopods-billing-ios:1.13.1-SNAPSHOT"
android: compile "org.robovm:robopods-billing-android:1.13.1-SNAPSHOT"
Message has been deleted

De V

unread,
Feb 6, 2016, 3:36:31 PM2/6/16
to RoboVM
Hi Dom,

Thanks for this post.

I have problem while adding dependencies to my android build.gradle file
When I add compile "org.robovm:robopods-billing-android:1.13.1-SNAPSHOT" to my android build.gradle file I get this errors:
Error:Failed to resolve: com.braintree:fortumo-in-app:9.1.2
Error:Failed to resolve: com.amazon:in-app-purchasing:2.0.1

Can you help me ?

Dom

unread,
Feb 13, 2016, 8:16:55 PM2/13/16
to RoboVM
I can't reproduce that error, it works for me. Have you tried running the sample app? https://github.com/robovm/robovm-samples/tree/snapshot/robopods/plugins/robo.billing
Reply all
Reply to author
Forward
0 new messages