iOS Question Question about In-App-Purchases

D

Deleted member 103

Guest
Hi,

Apple has these 4 options. The 4.Option looks like the Google option "ConsumeProduct".
If it is, is there an option like "manager.ConsumeProduct"?
Where can you set the duration of the subscription?


The translation:
Subscription without automatic renewal

A product that allows users to purchase a limited-term service. The content of this in-app purchase can be static. This subscription type will not be renewed automatically.
 

tufanv

Expert
Licensed User
Longtime User
Everything is manual for non renewing subscriptions. You need to implement your own backend for storing the subscriptions, check if they are still active etc..

Hi,

Apple has these 4 options. The 4.Option looks like the Google option "ConsumeProduct".
If it is, is there an option like "manager.ConsumeProduct"?
Where can you set the duration of the subscription?

View attachment 76978
The translation:
 
Upvote 0
D

Deleted member 103

Guest
Everything is manual for non renewing subscriptions. You need to implement your own backend for storing the subscriptions, check if they are still active etc..
Thanks @tufanv ,
I thought apple had a new option inserted comparable to the google option.
 
Upvote 0
D

Deleted member 103

Guest
Everything is manual for non renewing subscriptions. You need to implement your own backend for storing the subscriptions, check if they are still active etc..
Saving the subscriptions is no problem, problem is how can the subscriptions be restored.
The sub "MyStore_InformationAvailable" shows no info about date of purchase and "TransactionIdentifier".
So I can not check what and when was bought.

B4X:
Private Sub MyStore_InformationAvailable (Success As Boolean, Products As List)
    Log("InformationAvailable Success = " & Success)
    If Success Then
        For Each Product As ProductInformation In Products
            Log(Product.Title)
            Log(Product.ProductIdentifier & ": " & Product.LocalizedPrice)
            Log(Product.Description & ": " & Product.Tag)       
        Next
    End If
End Sub
 
Upvote 0
D

Deleted member 103

Guest
I found this info under In-App Purchase Programming Guide.
The problem is, how can you restore the product if you do not know the buyer user-id?
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
I found this info under In-App Purchase Programming Guide.

The problem is, how can you restore the product if you do not know the buyer user-id?
You need to implement a user registration system. Or I will save you time, once I implemented a system like this: no user registration, give a pin number to user after purchase and save the pin number with subscription start end dates, give an option to restore with pin number, increment a restoreused int in the database for each successful restore and if it is restored for more than 3 times do not accept restore.( to avoid sharing of pin)
 
Upvote 0
D

Deleted member 103

Guest
Hi @tufanv ,

How should I imagine that?
In the sub "SyStore_PurchaseCompleted" I show a dialog with a random pin, which the user should note / remember.
Thereafter, the random pin is saved with date of purchase and product name in the database.
If the user needs to restore the app, then it must enter the pin.
Did I understand it correctly?

Have you already implemented something like that?
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
Yes totally correct. They have accepted my restore mechanism for my app coinwatch. There is nothing wrong with this system. User has to save his pin and use it on another device if needed.


 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
By the way, leave the pin visible on some user control panel screen for example, because probably they wont save their pin and will have problem. So they should be able to look up their pin while their account is active.
 
Upvote 0
D

Deleted member 103

Guest
By the way, leave the pin visible on some user control panel screen for example, because probably they wont save their pin and will have problem. So they should be able to look up their pin while their account is active.
Yes, that makes sense.
 
Upvote 0
D

Deleted member 103

Guest
Hi @tufanv ,

I have now implemented my own user registration system.
It cost a lot of work, but I think it has paid off.

 
Upvote 0
D

Deleted member 103

Guest
I want to do something that Apple does not like very much.
When license time has expired, the user can usually buy a new license in Apple Store.
But I want to give the user a possibility to buy the license directly from me. He should only send me his old license key via e-mail and I say in how the payment should be made.
If the payment has been successful, then I simply change the license time into my database (internet) and the app can continue to be used.
What do you think Apple would have something against it?
 
Upvote 0

tufanv

Expert
Licensed User
Longtime User
They will certainly close your account.

 
Upvote 0
D

Deleted member 103

Guest
I found you explanation.

 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…