My iOS app offers auto-renewable subscriptions. Only the users that has non-expired subscriptions are supposed to receive some news alerts through push notifications. Currently I thought of two possible ways to implement this. One is to subscribe and unsubscribe to push notification from the app by checking the subscription state during the application launch and send push notifications to all subscribers from the server-side.The second method is to update the expiration date of the subscription to the server and make the server checking if the subscription is expired before sending push notifications.

I understand that both methods will always require the app to be launched frequently to update the subscription status. Is there any other way to handle this task? Any tips/suggestions would be highly appreciated. Thanks!

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top