question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

buySubscription returning E_UNKNOWN on iOS

See original GitHub issue

Version of react-native-iap

0.3.10

Platforms you faced the error (IOS or Android or both?)

iOS

Expected behavior

A subscription purchase receipt is returned

Actual behavior

‘E_UNKNOWN’, ‘An unknown or unexpected error has occured. Please try again later.’

I’ve followed the setup instructions and am able to call getSubscriptions() and get back a valid subscription product.

When I call buySubscription(myValidProductId) I get back the unknown error noted above. Neither my app, nor the in-app purchase have been reviewed or approved as of yet, I’m still in development and testing phase. Should I be able to test actually purchasing a subscription in this way?

This has been tried both at the simulator and with app installed to my device.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
Gazfaycommented, May 8, 2019

I have the same error as above when try to upgrade subscription plan. How to resolve this?

3reactions
hsparihar-systangocommented, Feb 22, 2019

@JJMoon I am facing the same issue on ios, the situation is once I successfully purchased 12 months recurring subscription. Then on sandbox environment on the device when I try to purchase 3 months or any other subscription less than 12 months I asked for sandbox user creds It shows purchase is a success then suddenly getting pop up which says An unknown or unexpected error has occurred." getting this error : { [Error: An unknown or unexpected error has occurred. Please try again later.] framesToPop: 1, code: ‘E_UNKNOWN’, nativeStackIOS: [ ‘0 RadioSpirit 0x0000000102bfd3e8 RCTJSErrorFromCodeMessageAndNSError + 152’, ‘1 RadioSpirit 0x0000000102b96b24 __41-[RCTModuleMethod processMethodSignature]_block_invoke_2.218 + 176’, ‘2 RadioSpirit 0x0000000102aeeb64 -[RNIapIos rejectPromisesForKey:code:message:error:] + 512’, ‘3 RadioSpirit 0x0000000102af10ec __45-[RNIapIos paymentQueue:updatedTransactions:]_block_invoke + 348’, ‘4 libdispatch.dylib 0x0000000104534dc8 _dispatch_client_callout + 16’, ‘5 libdispatch.dylib 0x000000010454382c _dispatch_lane_barrier_sync_invoke_and_complete + 124’, ‘6 RadioSpirit 0x0000000102af0e74 -[RNIapIos paymentQueue:updatedTransactions:] + 908’, ‘7 libdispatch.dylib 0x0000000104533824 _dispatch_call_block_and_release + 24’, ‘8 libdispatch.dylib 0x0000000104534dc8 _dispatch_client_callout + 16’, ‘9 libdispatch.dylib 0x0000000104542a78 _dispatch_main_queue_callback_4CF + 1360’, ‘10 CoreFoundation 0x0000000220894df4 + 12’, ‘11 CoreFoundation 0x000000022088fcbc + 1964’, ‘12 CoreFoundation 0x000000022088f1f0 CFRunLoopRunSpecific + 436’, ‘13 GraphicsServices 0x0000000222b08584 GSEventRunModal + 100’, ‘14 UIKitCore 0x000000024dbe6d40 UIApplicationMain + 212’, ‘15 RadioSpirit 0x0000000102996d70 main + 124’, ‘16 libdyld.dylib 0x000000022034ebb4 + 4’ ], userInfo: { NSLocalizedDescription: ‘Cannot connect to iTunes Store’ }, domain: ‘SKErrorDomain’, line: 2268, column: 26, sourceURL: ‘http://192.168.1.107:8081/index.bundle?platform=ios&dev=true&minify=false’ }

Please help me understand and resolve this situation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Request a refund for apps or content that you bought from Apple
Sign in to reportaproblem.apple.com. Tap or click "I'd like to," then choose "Request a refund." iPhone showing the Report a Problem website ...
Read more >
PurchaseFailureReason: Unknown - Unity Forum
1. Run game. · 2. Hit "Buy subscription" button (for 3 month with 3 free day period). · 3. Entered account password. ·...
Read more >
Contact Us | Subscription Questions - Buysubscriptions
How to get in contact with us regarding your subscription, renewal, single issue, or have a question about subscribing on buysubscriptions.com.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found