I'm getting
NSURLConnection finished with error - code -1022
error after cleaning the project and building it for the first time, and also when uploaded to the TestFlight.
In NSAppTransportSecurity properties NSAllowsArbitraryLoads is set to true. I also tried adding exceptional domains, but none fixes the issue.
Also, it is weird that everything works fine after running the app for the second time from XCode after cleaning the project.
What can be the reason for this issue?
Post
Replies
Boosts
Views
Activity
I'm developing an online marketplace where users can sell digital items (e.g. videos) to other users and earn money. The users can request to cash-out their earnings. If I use a third party payment processing platform like Stripe to handle item purchase and payouts (since cash payout cannot be done via Apple API), is this a violation of Apple IAP guidelines?
I need to pay my customers via my iOS app. I know this can be implemented using a payment process platform like Stripe. But is there a way to do this via Apple API without using a third-party platform, like a way to automatically send Apple cash?
I'm implementing an app that let users subscribe for extra storage to upload content. This is a monthly subscription and it is implemented as an auto-renewable subscription. An in-app purchase receipt will be used only once to confirm the purchase is successful and to get details like expiry date. Then the database is updated continuously with server-to-server notifications.
However the app got rejected since Restore is not implemented. I simply added a restore button along with its functionality. But I don't know what to do when the restore is successful.
For the scenario in this app how does transaction restoring can be useful?
I'm accessing the receipt after a successful in-app subscription (by checking SKPaymentTransactionStatePurchased
state). After I verified this receipt, in the receipt verification response "expirationdate", "expirationdatems", and "expirationdatepst" are are missing under "receipt". Why is that?
(As a workaround I tried to get the last object of latestreceipt_info and refer its expiration date. But this data is referring to the last subscription before the current one. So I cannot find the required expiration date there.)
How can I resolve this and retrieve expiration date of the subscription purchased just now?
While doing an in-app auto renewable subscription, and when observing its status, the status directly goes into SKPaymentTransactionStatePurchased state without going into SKPaymentTransactionStatePurchasing state. So that no dialog window is prompted to the user.
This does not happen all the time. After refreshing everything (Signing out and sign in again from sandbox account, rebuilding the app, etc) subscriptions work as expected. But after sometime above behaviour happens again. What caused this issue?
Also, when this happens, the receipt does not indicate anything about the subscription I tried to do last. It has the details of last subscription and indicates that it is expired.
I want to send the receipt got from AppStore after an in-app subscription to the server in order to verify it (because Apple recommends verifying from server rather than the app).
The receipt has symbols like, "+", "/", and "=". Since I could not send with those symbols I changed them, e.g. replacing + with "%2B" and so on.
But even after that I can get only a part of the receipt in my server. Sending it as a serialized Json also did not help.
(I need to send more data along with the receipt to the server, so that I cannot pass the receipt without converting into NSString)
How can I resolve this issue?
I need to implement storage subscription in my iOS app with in-app purchase. But unlike renewable or non-renewing subscriptions, I do not want to add a time constraint for storage. The user can use the purchased storage for any time duration, and it will not automatically renewed.
What is the type of the in‑app purchases that I should use for this?
I need to load Twitter profile picture into my iOS app using objective C. For authentication I'm already using STTwitterAPI library. When I tried loading profile picture using this library it returned an empty image.
How can I implement Twitter profile image loading separately without authenticating again with Twitter?
I want to implement a scrollable tab layout below a collapsible header section similar to the view shown in this link: https://android.jlelse.eu/parallax-scrolling-header-tabs-android-tutorial-2cc6e40aa257I appreciate it if someone can give me guidance on how to do that without using third party libraries for iOS using objective C.