Restoring In App Purchases for iOS using Unity - ios

I want to create a button that allows the user to restore their In App purchases if they ever delete and re-install the game.
I am using Unity 4 for iOS specifically.
I have done this in objective-c using Cocos2D but I know that it does not work the same way.
Does anyone know any code snippets or links to a tutorial that can help me gain access to what has been purchased and restore these for the user?
Would be greatly appreciated.

Are you using some kind of plugin for StoreKit? There is a really nice plugin by Prime31 which provides this behavior:
public static void restoreCompletedTransactions();
You can visit their website for more information
http://prime31.com/docs#iosStoreKit

Related

Running iOS app in the background without user interaction

Hey all I’m new to the world of Xcode and building apps.
I am wondering if it were possible to have an app run in the background and have it listen to the photos library and if it finds a new photo has been added it would automatically upload that to some type of rest api call without the user having to interact/do it manually?
This will only be used in my household so I’m not looking to get it into the App Store or go through any approval process that apple does if it were going to be in the App Store.
So before I spend too much time looking around - is this possible with iOS 14+? Only thing I have come across that remotely sounds like something that would work would be this PHPhotoLibraryChangeObserver but I’m not sure if the user has to interact with it in order for it to be used or not? I’m open to any suggestions you more experienced Xcode programmers have about the above.

Maintain Session after app Update in React Native

I have currently working on react native ios app and for testing purpose i have submitted app on test flight mode in ios.
I have created session management with help of AsyncStorage this feature helpful still app will not updated,but after app updated AsyncStorage will dis-troy.
My question is that how to maintain app session storage after app will updated.
If any one have idea please answer this.
Thanks in Advance.
You can save login data directly in database (for example you can use something like Realm).
However pay attention on how you use AsyncStorage especially on Android (you probably don't want to have a "clear data" backup on Google, see this).

Appgyver and in app purchase / billing

I currently use Appgyver platform to make an app and I would like to implement in-app purchases. I was wondering if anyone has already done this. Unfortunately, the documentation is quite poor and this functionality is not available in the appgyver add-ons.
Any ideas will be much appreciated, thanks!

Facebook 3.0 SDK Beta - should i use it in a final deploy?

i need to integrate Facebook to share some links within my app. I´ve never used the "old" SDK before. Just created a dummy project to test it.
After reading the announcement about the 3.0 SDK beta, i´m interested about using this beta version within a final app-store app. What do you think about? Does that make sense? I just would need it for sharing links.. I would love to use 3.0 because of the easier integration, so therefore my question...
Thanks for your opinion..
It actually depends on how much risk you are willing to take.
My opinion is that the integration of the old sdk is not that difficult. More over it is safe. Besides there are official tutorials showing you step by step what to do:
iOS Tutorial #socialchannels
Mobile Feed Dialog
The sdk 3.0 is a gigantic step forward. Anyway I'd just wait until it is out of beta and then push an update.
I'm using it in an app. I haven't encountered any show stopping bug as of now.

Adding in app purchases to an Open Feint powered game

I am developing a game with cocos2d-iphone and I am going to add in app purchases.
AFAIK my options are Open Feint X and MKStoreKit.
I still don't get what's the benefit of using Open Feint over MKStoreKit. Why would someone pick Open Feint?
Why would someone use any 3rd party library over Apple's?
I think the question is moot because OpenFeint added IAP as a service to their existing developers. Meaning developers who use OF primarily as a social platform. And anyone who likes to use an all-in-one solution, from FB, Twitter via Game Center right down to IAP. From what I understand MKStoreKit is just an IAP wrapper with no other features.
I ended up adding some logic to MKStoreKit.
You can get the code from my fork.

Resources