I'm trying to use this code to get the receipt for an IAP. The code was recommended by Erel.
I am using it in the MyStore_PurchaseCompleted event. Product is of the Purchase type.
I get the following error on the second line of the above code:
Object was not initialized (NSObject)
I have tried the following:
1) uninstalled the app
2) cleaned the project and re-installed
3) restarted b4i
4) verified that the "no" NativeObject was initialized with .IsInitialized
Any ideas?
B4X:
Dim no As NativeObject = Product
Dim b() As Byte = no.NSDataToArray(no.GetField("transactionReceipt"))
I am using it in the MyStore_PurchaseCompleted event. Product is of the Purchase type.
I get the following error on the second line of the above code:
Object was not initialized (NSObject)
I have tried the following:
1) uninstalled the app
2) cleaned the project and re-installed
3) restarted b4i
4) verified that the "no" NativeObject was initialized with .IsInitialized
Any ideas?
Last edited: