In-App Purchases in Kivy iOS

211 views
Skip to first unread message

Matt Freeman

unread,
Feb 15, 2017, 11:28:09 AM2/15/17
to Kivy users support
Is there any existing documentation on how to implement in-app purchases in a Kivy app on iOS?
From what I can determine, one would need to do a good deal of work in Objective-C to communicate with the App Store via StoreKit, and then use pyobjus to wrap and communicate with that code in Kivy Python. But I was hoping there might be a more streamlined solution that avoided the need to code any Objective-C.
If there's no way to get around using Objective-C, then is there a decent tutorial on how to do it?

Matt Freeman

unread,
Mar 7, 2017, 5:06:14 PM3/7/17
to Kivy users support
I have made some progress by using StoreKit purely through pyobjus without writing any Objective C of my own. However, there seem to be some aspects of how StoreKit works that are difficult to replicate in python.

For example, simple lines of ObjC like this:
   productsRequest.delegate = self;
result in confusing behavior in Python because "self" in Python is not the same thing as "self" in ObjC.

In general, although I have written what seems to be a functional skeleton of pyobjus code, I haven't been able to establish whether or not my app is actually talking to the App store. I can't get it to list any product identifiers or anything like that. This makes me suspect I'm missing something critical.

Nick Michael

unread,
Mar 24, 2021, 1:48:04 AM3/24/21
to Kivy users support
Hi,

I'm looking to do the same thing. I wondered if you succeeded or not in the end.

Ben Boughton

unread,
Aug 22, 2021, 9:12:49 PM8/22/21
to Kivy users support
Hi Matt, how did you get on here?
If you got something working I'd be happy to sponsor some $ to write up a public guide. 
Reply all
Reply to author
Forward
0 new messages