A
A
Alexander2021-11-17 20:01:30
Android
Alexander, 2021-11-17 20:01:30

How to sell digital content in android / ios applications through subscriptions?

There is a mobile application written in React Native and a backend to it in Laravel.

The user can see content limited in number - posts. Every day, three additional posts are opened for him. The total number of posts is naturally updated with new ones at different intervals.

I need to integrate payment so that when buying a subscription, the user can see an unlimited number of posts.
The question is:
- How should this "paid" content be sent to the application?
Can I just check on the backend whether this subscription was purchased from the user and, depending on true|false, give the number of posts available to him on the endpoint?

In addition to this purchase option, there will be others to choose from (for example, purchasing the PRO version to access additional functionality), so the option of creating a separate paid version of the application is no longer available.

I understand that the application has its own cache and it is not clear what to do if the subscription period has expired and the cached posts should no longer be available to it ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alekseyHunter, 2021-12-20
@alekseyHunter

Can I just check on the backend if the user has purchased this subscription

That's what they do.
I understand that the application has its own cache and it is not clear what to do if the subscription period has expired and the cached posts should no longer be available to it ...

There is a cache - if you store something in the cache. For updating, you can send a request to the server to check for a subscription. You can send a Push notification, and when you receive it, set the same boolean flag in Preferences and clear the cache when checking it. You can reduce the lifetime of the cache. There are not so few options.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question