Post

Replies

Boosts

Views

Activity

Error 21002 when validating receipt
Hello, I am trying to validate consumable purchase server side (python) and here is my code : url = "https://buy.itunes.apple.com/verifyReceipt" request_body = {"receipt-data": token} headers = {'Content-Type': 'application/json'} response = requests.post(url=url, headers=headers, data=request_body) data = response.json() if "status" in data: if data["status"] != 0: print(f"Response from Apple verification : {data['status']}") The status code i am getting is : 21002 which means that the receipt is malformed or something. The token var contains the base64 encoded value and is a String here. What i am missing here please ? PS : i am also using the sandbox URL as a fallback, and this is giving the same status code. Thanks in advance
7
0
11k
May ’22
AppData doesn't contain the same file size as the iphone storage
Hello, I am developing an app and i saw after few days of use that i had 3Go of "user data" in my iphone storage. I wanted to know exactly what was taking that much space on the disk since i was doing such an heavy work there, so i have downloaded the "container" from the Xcode organizer and i have open my app data by right clicking on "Show package content". Then i compressed the whole directory (AppData) to check its size and i saw 400Mo which is actually representing the things i am storing. Then i was browsing the whole content and saw all the files i have saved myself where i saved them so it's very fine. However, the 2.5Go left are a pure mystery. Is it a bug ? How can i know what is taking that much space on my app on my phone please ? I can't let my users have an infinite growing storage without knowing what's going on... Thanks a lot in advance, Tom
5
0
857
Oct ’22