Posts

Post not yet marked as solved
0 Replies
164 Views
According docs of AsyncImage: This view uses the shared URLSession instance to load an image from the specified URL, and then display it. Can you provide an example of using NetworkServiceType "background" when loading remote images using AsyncImage? Cheers! P.S. Perhaps is as simple as URLSession.shared.configuration.networkServiceType = .background
Posted Last updated
.
Post not yet marked as solved
5 Replies
1.1k Views
Hi, I'm trying to locate the app store receipt in the apple watch in order to send it to my server to verify. I'm using the Original API for In-App Purchase because my app needs to support watchOS 7.0 My watchOS app is an independent app still pending to release to App Store. I'm testing using TestFlight, and I have one-month subscription in state "Ready to submit". The process of purchase finishes fine in the apple watch -sandbox success screen- but then, when I invoke SKReceiptRefreshRequest in order to ask Apple for the Bundle.main.appStoreReceiptURL to download in my device and send it to my server to verify, I always get the following error: <SKReceiptRefreshRequest: 0x16df52c0>: Finished refreshing receipt with error: Error Domain=ASDErrorDomain Code=507 "Invalid container for application: file:///private/var/containers/Bundle/Application/8BAF3B0E-45FC-465A-92E2-CFB1507A33E1/IvooxAppleWatch%20WatchKit%20App.app/PlugIns/IvooxAppleWatch%20WatchKit%20Extension.appex/" UserInfo={NSDebugDescription=Invalid container for application: file:///private/var/containers/Bundle/Application/8BAF3B0E-45FC-465A-92E2-CFB1507A33E1/MyApp%20WatchKit%20App.app/PlugIns/MyApp%20WatchKit%20Extension.appex/} And the receipt isn't there, in the path Bundle.main.appStoreReceiptURL. I tried looking for both receipt and sandboxReceipt. No luck. I even tried to list the contents of StoreKit but that directory does not exist on my watch according FileManager. I cannot get rid of the error above. Any help is highly appreciated. Thanks in advance.
Posted Last updated
.