app rejected.how to track user non-renewing subscription

寵の児 提交于 2019-11-28 21:53:35

You might try this approach:

On the first run, the app registers with your server and get back a unique_token. Store it on server and client side.
Upon every purchase submit to your server the unique_token and store the association between unique_token and the purchased product. If the user register with your service (login & pass) send also the unique_token and associate the product id to the user directly.

When you design your database keep in mind that a user can buy 2 different products on 2 different devices, register on one of them and then login on the other one.

Pros:

  • Registration is not mandatory.
  • You don't need to use UDID.

Cons:

  • Way more complex. (thx Apple)
  • If a user deletes the app without registering all the purchases are lost. However some workarounds might be possible (ex submit to the server also the mac address of WiFi/Bluetooth interface [I have no idea if any private api is needed or it's again someother apple guideline] )
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!