Post

Replies

Boosts

Views

Activity

Reply to in-App purchases for authenticated users only
Thank you for your quick response ! In general any additional steps or friction implementation before a purchase that doesn't add value or functionality may impact the customer buy experience. I think we can manage to avoid user login when buying packs but we will have more trouble for the meal planification feature as it needs to be linked to the user profile. I understand it adds friction and will potentially deter users from buying but is it a reason for rejection on Apple's side ? Thanks Again
Topic: App & System Services SubTopic: StoreKit Tags:
Sep ’22
Reply to how to detect the locked/unlocked screen status with swift
If you try to send a command and the device is locked, data protection will prevent you from accessing the keychain items and you’ll get a reasonable error. What do you need the notification for? I think the reason the code was done this way is because IoT framework we're using may not be giving a descriptive error but I agree it would be the cleanest solution. Anyway I fear this little extension might be short-lived given the warnings telling us to move towards WidgetKit which sadly can't be used for this kind of widget for now ;) Thanks for the quick & helpful answers ! Happy holidays Bioche
Topic: Privacy & Security SubTopic: General Tags:
Dec ’21
Reply to how to detect the locked/unlocked screen status with swift
Thank you for your answer ! Can you explain more about why your widget extension needs this? It's not a WidgetKit extension but an old Today widget that's presenting a remote control of an IoT vacuum cleaner (start / stop etc...). These commands can only be sent if the phone is unlocked because we need to access protected tokens in keychain. That's where isProtectedDataAvailable comes in. By "modern widget", I assume you're talking about WidgetKit. Unfortunately, we can't switch to this for now because of its limitations, mainly the fact that you can't interact with it without opening the app :/ Thanks again Bioche
Topic: Privacy & Security SubTopic: General Tags:
Dec ’21
Reply to how to detect the locked/unlocked screen status with swift
Hello ! I know this question is getting old, but we're bumping into this issue as well. After migrating to XCode 13, it became mandatory to set APPLICATION_EXTENSION_API_ONLY to true in build settings of our widget extension. However, as stated above, this renders the isProtectedDataAvailable property unavailable through UIApplication.shared So I have 2 questions : Is there any new way of accessing it cleanly with iOS 14 or 15 ? In the meantime, is it acceptable to use this ugly hack or can this be seen as accessing private API & subject to app rejection 🥶 ? func isProtectedDataAvailable() -> Bool {   let application = UIApplication.value(forKeyPath: #keyPath(UIApplication.shared)) as! UIApplication   return application.isProtectedDataAvailable } Thanks in advance Bioche
Topic: Privacy & Security SubTopic: General Tags:
Dec ’21