iOS 7 Local (on device) Receipt Validation and In-App Purchases Check

前端 未结 5 779
粉色の甜心
粉色の甜心 2021-02-01 05:38

I have implemented receipt validation locally on the device using OpenSSL and the asn1c compiler with help from Apple\'s Receipt Validation Programming Guide. My app only suppor

5条回答
  •  一个人的身影
    2021-02-01 06:23

    Alright so here is what worked for me, Apple approved the app last night after multiple rounds of review appeals and re-submissions spanning almost a month.

    Do NOT try and refresh the receipt when the app launches and do not block the UI. What I was doing was not showing any UI on launch until a receipt was found, so when prompted for the iTunes password on launch pressing cancel would show the limited version of the app, entering a correct password would try and download a new receipt and act according to whether one was found.

    So on launch if you find a receipt thats fine, if not do not try and refresh it.

    DO however refresh it when the user presses the Restore Purchases option.

    Hope this helps.

提交回复
热议问题