Posts

Post not yet marked as solved
2 Replies
1.1k Views
Hi, title says it all: I have Transaction.currentEntitlements returning expired subscriptions (testing both transaction expirationDate & RenewalState). Environment: local via .storekit file. Subscription duration is shortened for testing. Could it be the issue? The sub duration is normally 1 year. The documentation says it should only returns active subscription (RenewalState.subscribed) or in grace period (RenewalState.inGracePeriod).
Posted
by yellow8.
Last updated
.
Post not yet marked as solved
1 Replies
423 Views
I'm using Watch Connectivity to transfer files from the Watch to its paired iOS device. File transfer is successful in my first tests, but obviously I need to erase the source file when it is - successfully - sent. When should I do that? just after initiating the file transfer, using transferFile(file: NSURL, metadata: [String : AnyObject]) when getting the returned WCSessionFileTransfer? when getting the callback func session(_ session: WCSession, didFinish fileTransfer: WCSessionFileTransfer ? --> but will the callback always be called, even if the transfer finishes while the app is in background? some other time? NB: I'd really want to avoid implementing a custom 'ack' system, thus not using any user info/application context transfer.
Posted
by yellow8.
Last updated
.
Post not yet marked as solved
0 Replies
409 Views
Since iOS 16.4, my apps hangs when I dismiss the keyboard in viewWillDisappear(). Here is my code: override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) DLog("will disappear <<<<<") dismissKeyboard() } fileprivate func dismissKeyboard() { self.filenameSearchTextField.resignFirstResponder() } App hangs, CPU is 100%, memory usage is increasing. The hangs happen on the resignFirstResponder() call. What's going on here?
Posted
by yellow8.
Last updated
.
Post not yet marked as solved
1 Replies
1.1k Views
Hi,In the following scenario :User purchases an auto-renewable subscription (ex: 1 month) for a premium accessUser cancels the subscription but still has premium access until it expiresWhen expired, the user purchases the subscription again--&gt; I receive a .restored transaction state in the paymentQueue updated transactions (sandbox environment)I was expecting a .purchased instead.The problem is that in that case, there is no call to paymentQueueRestoreCompletedTransactionsFinished(_: SKPaymentQueue)How should I handle this case properly?Thank you!
Posted
by yellow8.
Last updated
.
Post not yet marked as solved
0 Replies
706 Views
Dears,I'm currently finishing developing a macOS application that uses NSPersistentDocument to store the user's data.The feedbacks from testers being positive, I'm thinking of developing an iOS version of the application for the user to be able to consult/manage his data on his iOS/iPadOS devices.The 'problem' is that I use NSPersistentDocument and I could not find any lead on how to do this.iCloud synchronization seems to have changed so much over the year, I cannot manage to find up-to-date recommendations for the 2020 way of achieving this - quite popular - functionality.Any recommendation on how to do this the modern way ?Thanks!
Posted
by yellow8.
Last updated
.