Post

Replies

Boosts

Views

Activity

Reply to In app purchase
Or is a single receipt updated to reflect the IAP, with original purchase and purchase date? Yes - there is a single app receipt, which describes the original (free) purchase of the app itself, and has a separate section describing each IAP purchase. But note that using the app receipt may not be the easiest way to determine whether the IAP has been purchased. See the StoreKit and StoreKit2 documentation. Is this a new app, written in Swift? In that case, look at the StoreKit2 documentation for how to determine which IAPs have been purchased. (Do you have serious concerns about piracy? That may influence how you check if the IAP has been purchased.)
Topic: App & System Services SubTopic: StoreKit Tags:
Jul ’22
Reply to Problem with architecture in c++
The error is not related to the architecture. Ignore that part of the error message. Read it as "Undefined symbols: stdscr, wgetch". I believe wgetch is a curses function. I don't know about stdscr. I guess that you need to link with libcurses. I don't know how to do that in VS code. Does that help?
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’22
Reply to appstoreconnect.apple.com: English (New Zealand) is missing
According to https://help.apple.com/app-store-connect/#/dev997f9cf7c the default language for New Zealand is "English (UK)", and there is no additional supported language. I think this localisation really is only for the user's language; if what you're trying to do is to present different content based on the users location, that's not really going to work.
Jul ’22
Reply to In app purchase
Can you clarify which "receipt" you are referring to? There is the "app receipt", which includes in-app purchases. Yes it is probably true that you do not get a receipt during development until you have done some sort of IAP activity. Maybe using SKReceiptRefreshRequest (in the old StoreKit) will force it to install a receipt with only the main app purchase details? Not sure. But you don't need to use the "app receipt" to determine whether the IAP has been purchases; there are simpler ways to do that. What are you really trying to do?
Topic: App & System Services SubTopic: StoreKit Tags:
Jul ’22
Reply to File exclusive access on macOS
What you're asking for is called "mandatory locking". What those functions provide is "advisory locking". Advisory locking depends on all users of the file using the locking functions. Historically, Windows has provided mandatory locking; POSIX (Unix) has provided mostly advisory locking. I believe that Mac OS, and iOS, follow POSIX here. So no, I do not believe that you will find a way to lock a file so that another (uncooperative) process will be unable to access it. Some work-around: Modify the permissions of the file while you modify it. Make a temporary copy of the file, and rename() it over the original (which is atomic) when you have finished. (What do you really want to achieve?)
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’22
Reply to In app purchase
OK. Yes, this will work as you want in production. The difficulty you have in in the sandbox, where you need (if possible) to force it to install a receipt when there are no IAPs. I do not know how to do that.
Topic: App & System Services SubTopic: StoreKit Tags:
Jul ’22
Reply to In app purchase
Just to add... As I said above, the "app receipt" isn't the only way to do this. You also have the "AppTransaction" in StoreKit 2 (but only in iOS 16). My guess is that that behaves in the same way regarding the sandbox, but I could be wrong.
Topic: App & System Services SubTopic: StoreKit Tags:
Jul ’22
Reply to In app purchase
Do you have functioning code that checks for the IAP in the receipt? There is no "product ID" for the original app purchase in the app receipt. The original purchase is not an IAP purchase. You need to be looking at attribute type 19, "Original Application Version".
Topic: App & System Services SubTopic: StoreKit Tags:
Jul ’22
Reply to Secure Enclave
where the first sends a private key to the second No. unknowable, but now stored in two devices? Unknowable but known to a second device..... no, that's a contradiction. It sounds like you might be trying to design your own cryptography system. Don't do that!
Topic: Privacy & Security SubTopic: General Tags:
Jul ’22
Reply to App rejected because of code inside #if DEBUG conditions
Do you test your production build configuration? (If you don't test your production build configuration - why don't you test your production build configuration ???!!!) Anyway, put something inside the #if DEBUG that will cause it to not compile (example: !"£$%^&*), and try to build for production. Is it worth spending time on engaging in a conversation with the review team to figure out what’s going on? It's probably more productive to talk to Developer Technical Support. Edited to add: I've just googled what LSApplicationWorkspace might be used for, and I think you need to be very cautious going forward. It seems that it can perhaps be used to enumerate all the apps on the device! That's a nasty bit of user privacy violation, and has no doubt raised a "red flag" against you and the app. Why on earth was it there in the first place?
Jul ’22
Reply to In app purchase
Right, yes that TP thing will do what you need. StoreKit 2 has this in iOS 16. P.S. I got an email notification when you posted your reply 17 minutes ago, but not when you posted your comment 12 hours earlier. Another reason to not post comments on this forum!
Topic: App & System Services SubTopic: StoreKit Tags:
Jul ’22