Today I was really overwhelmed by an issue.
I was trying to send a subscription receipt to a server to make a receipt validation with Apple servers. The web service requires to send some parameters included the receipt encode into base64 string in a POST body.
After a lot of trials we've found the problem, it seems that the encoded receipt in base 64 contains characters that are encoded again by the HTTP request serializer in URL encoding.
For what I understood the behavior of the the web service was just to pack my receipt in a JSON with a password and send it to the Apple server.
The only answer we were able to receive from Apple was 21002 status.
I've read a lot of questions on stack (here, here, here about that issue and one gave me solution, on server side just replace " " with "+".
Now it works, but I'm not feeling comfortable using that, is there a way to say AFnetworking to do not url encode some parameters? Or to rencoding in the right way?
App Store receipt and base 64 encoding and AFNetworking
811 views Asked by Andrea At
1
There are 1 answers
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in IN-APP-PURCHASE
- TypeError: _appStoreServerLibrary.SignedDataVerifier is not a constructor node js app-store-server-library
- macOS in-app purchases via dylib - is it possible? alternatives? suggestions?
- StoreKit 2: Custom purchase option isn't recorded
- ios sdk swift : Show in-app app update/install prompt
- purchase errors via 2accounts
- How to handle Apple subscription with serverside verification
- IOS IAP succeed but does not charge the user
- Can't add iOS sandbox test credit cards
- Cannot see free trial in Android/Play store using Flutter in_app_purchase
- Can an iOS app sell user created content with In-App Purchases?
- Flutter in_app_purchase multiple subscriptions
- iOS 17.4 Code=4097 "connection to service named com.apple.storekitd"
- Is there any way to handle promocode in flutter?
- How I can know if the user cancel the subscription from google play store using in_app_purchase Flutter?
- Unity IAP AppleOriginalTransactionID is empty
Related Questions in AFNETWORKING-2
- Unable to build the app after upgrading the AFNetworking and it failed with Mopub framework
- pod AF Networking text/html ContentTypes issue
- Sending array of dictionary with afnetworking 2.0
- AFNetworking 3.0 AFHTTPSessionManager using NSURLRequest
- AFNetworking error 53 during attempted background fetch
- AFNetworking: How do I measure HTTP request and response times?
- Multiple Image upload using AFNetworking Multipart form data not working
- AFNetworking request log
- Xcode 9.2 : API error: Request failed: forbidden (403)
- Wrong NSNumber double value for iOS 11 using AFNetwotking
- Image uploading failed using AFNetworking 2.6.0
- Form dictionary as a parameter in PUT API request - AFNetworking
- Invalid bitcode version error after updating AFNetworking
- Get Api is not working properly
- Cannot make POST Request with AFNetworking
Related Questions in SUBSCRIPTIONS
- Can another app user have subscription from same itunes connect after 1st user's subcription gets expired in ios
- app user vs itunes user in In app purchases in ios
- Is there an easy way to check the status of the user's Subscription on the App Store, or the only way is to do a receipt and Subscription validation?
- Select Stripe Subscription Item ID from Array
- Should I check iTunes Store subscription before App login or after?
- Subscription component with GraphQL Apollo Client
- Unsubscribing from Observables inside services?
- WooCommerce Subscriptions switch subscription
- Do cancellations of in-app subscription trials appear on App Store Connect (formerly iTunes Connect)?
- UI lag between my javascript and my ported elm
- Unsubscribing from TimerObservable does not stop subscription callback being executed
- Is it possible to directly consume the Google Play BillingClient from a Xamarin Android app?
- Subscription change from Subscription screen
- Android : How to you prevent someone from getting a new free trial by just creating a new gmail address?
- Is is possible to create date-ranged in-app subscription in Apple and Google Plays stores?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
with AFNetworking 2.5.4 I managed to send the receipt correctly by setting the content-type of the request serializer.