Closed hosy closed 4 years ago
@felix-schwarz attached you can find the log file after a reboot: ownCloud_25.08.2020__14_22_12.log.txt
@hosy Looks like OCLicenseAppStoreProvider
can't access the App Store receipt. Here's the Intents appex log:
2020-08-25 14:24:34.026000+0200 ownCloud Intents[277:004485] [dbug] | [Licensing, AppStore, β¦] Loading receipt [β¦ Start] [OCLicenseAppStoreProvider.m:235|FULL]
2020-08-25 14:24:34.026000+0200 ownCloud Intents[277:004485] [dbug] | [Licensing, AppStore, β¦] Loading App Store Receipt [β¦ LoadReceipt] [OCLicenseAppStoreProvider.m:259|FULL]
2020-08-25 14:24:34.026000+0200 ownCloud Intents[277:004485] [dbug] | [Licensing, AppStore, β¦] App Store Receipt loaded: (null) [β¦ LoadReceipt] [OCLicenseAppStoreProvider.m:273|FULL]
And here the same for the app:
2020-08-25 14:24:39.259000+0200 ownCloud[288.004736] [dbug] | [Licensing, AppStore, β¦] Loading receipt [β¦ Start] [OCLicenseAppStoreProvider.m:235|FULL]
2020-08-25 14:24:39.259000+0200 ownCloud[288.004736] [dbug] | [Licensing, AppStore, β¦] Loading App Store Receipt [β¦ LoadReceipt] [OCLicenseAppStoreProvider.m:259|FULL]
2020-08-25 14:24:39.266000+0200 ownCloud[288.004736] [dbug] | Loaded receipt from file:///private/var/mobile/Containers/Data/Application/55E1541E-8258-41AE-9B06-79302DBA8BE0/StoreKit/receipt [OCLicenseAppStoreReceipt.m:73|FULL]
2020-08-25 14:24:39.280000+0200 ownCloud[288.004736] [dbug] β [Licensing, AppStore, β¦] App Store Receipt loaded: <OCLicenseAppStoreReceipt: 0x2802dc200, receiptData: {length = 5807, bytes = 0x308216ab 06092a86 4886f70d 010702a0 ... 47976f17 1d850cf9 }, creationDate: 2020-08-23 10:03:42 +0000, expirationDate: (null), appBundleIdentifier: com.owncloud.ios-app, appVersion: 169, originalAppVersion: 124, inAppPurchases: ( [β¦ LoadReceipt] [OCLicenseAppStoreProvider.m:273|FULL]
2020-08-25 14:24:39.280000+0200 ownCloud[288.004736] [dbug] β [Licensing, AppStore, β¦] "<OCLicenseAppStoreReceiptInAppPurchase: 0x2833ff660, quantity: 1, productID: single.shortcuts, purchaseDate: 2020-02-14 10:36:52 +0000, originalPurchaseDate: 2020-02-14 10:36:52 +0000, cancellationDate: (null), subscriptionExpirationDate: (null), subscriptionInIntroOfferPeriod: (null), webOrderLineItemID: 0, transactionID: 180000673067795, originalTransactionID: 180000673067795>", [β¦ LoadReceipt] [OCLicenseAppStoreProvider.m:273|FULL]
2020-08-25 14:24:39.280000+0200 ownCloud[288.004736] [dbug] β [Licensing, AppStore, β¦] "<OCLicenseAppStoreReceiptInAppPurchase: 0x2833ff600, quantity: 1, productID: single.documentmarkup, purchaseDate: 2020-02-14 10:37:15 +0000, originalPurchaseDate: 2020-02-14 10:37:15 +0000, cancellationDate: (null), subscriptionExpirationDate: (null), subscriptionInIntroOfferPeriod: (null), webOrderLineItemID: 0, transactionID: 180000673067973, originalTransactionID: 180000673067973>", [β¦ LoadReceipt] [OCLicenseAppStoreProvider.m:273|FULL]
2020-08-25 14:24:39.280000+0200 ownCloud[288.004736] [dbug] β [Licensing, AppStore, β¦] "<OCLicenseAppStoreReceiptInAppPurchase: 0x2833ff5a0, quantity: 1, productID: single.documentscanner, purchaseDate: 2020-02-14 10:37:32 +0000, originalPurchaseDate: 2020-02-14 10:37:32 +0000, cancellationDate: (null), subscriptionExpirationDate: (null), subscriptionInIntroOfferPeriod: (null), webOrderLineItemID: 0, transactionID: 180000673068111, originalTransactionID: 180000673068111>" [β¦ LoadReceipt] [OCLicenseAppStoreProvider.m:273|FULL]
2020-08-25 14:24:39.280000+0200 ownCloud[288.004736] [dbug] β [Licensing, AppStore, β¦] )> [β¦ LoadReceipt] [OCLicenseAppStoreProvider.m:273|FULL]
The fix, then, will likely be to have the app copy its receipt to a location in the shared app container and have OCLicenseAppStoreProvider
fall back to that copy if it doesn't find one under NSBundle.mainBundle.appStoreReceiptURL
.
I'll take care of that in the 11.4.1
branch.
@hosy Now implemented in 5ac174678972ef329abd8b05c2175861b1003180.
included in milestone/11.4.1
branch
I can not reproduce this one. These are the steps i do:
iPhoneX iOS14GM
iOS oC app 11.4 43691f
Do i miss something? here you have the performance:
Is it posible that the fix comes from a newest version of iOS14, apart of the one developed by @felix-schwarz ?
@jesmrec I think this can only be validated with the live App Store version. But @felix-schwarz figured out, that we had some problems before and fixed it with this code changes. My suggestion is, to move forward and QA with the App Store version.
Agreed, let's move forward.
I keep this issue open and should be checked again after the release.
@jesmrec you can give it a new try. For me it is working now again with the AppStore version.
yeah, it works!
When using the shortcuts extension and the Shortcuts IAP was bought, the extension returns, that the IAP was not bought.
Steps to reproduce
Expected behavior
Shortcut will be executed
Actual behavior
Shortcut extension returns an error, that the IAP was not bought
Client
iOS version: iOS 14
ownCloud app version: 11.4