Before you continue
Before submitting a bug report, please review our troubleshooting documentation at Troubleshoot Issues | Vega Troubleshooting
If you still want to file a bug report, please make sure to fill in all the details below and provide the necessary information.
NOTE: PLEASE ONLY REPORT A SINGLE BUG USING THIS TEMPLATE.
If you’re experiencing multiple issues, please file a separate report for each.
Bug Description
1. Summary
Provide a brief description of the bug in the SDK and its impact on app functionality.
App Name:
App Link on Amazon Appstore (found through Developer Console → Actions column in App List → View on Amazon.com):
Bug Severity
Select one that applies
- Impacts operation of app
- Blocks current development
- Improvement suggestion
- Issue with documentation (If selected, please share the doc link and describe the issue)
- Other
2. Steps to Reproduce
- Install / launch the app on a real VegaOS device through AppstoreDevTest.
- Launch the app.
- The purchase restoration process runs during app initialization.
- The app attempts to retrieve AmazonUserID.
- The request fails and throws a
Failedexception. - The app catches and suppresses the purchase restoration error internally.
3. Observed Behavior
After launching the app through AppstoreDevTest, retrieving AmazonUserID through the IAP API fails with a Failed error.
Jul 01 03:30:35.701739 firestick-0043b55f78dc889e local0.info <APP_PACKAGE>[12897]: 2843014048 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] [AmazonIAPSDK] Received the request for getUserData
Jul 01 03:30:35.709160 firestick-0043b55f78dc889e local0.info <APP_PACKAGE>[12897]: 2843014048 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] [AmazonIAPSDK] requestId : 3a1b4d0a-3c2c-4eaa-b854-73f08a2ba4f4
Jul 01 03:30:36.269397 firestick-0043b55f78dc889e local0.err <APP_PACKAGE>[12897]: Binder: Unable connect to 'com.amazon.iap.tester.service'. Missing the permissions needed to connect to the service.
Jul 01 03:30:36.271655 firestick-0043b55f78dc889e local0.err <APP_PACKAGE>[12897]: 2321519520 ERROR com.amazon.iap.tester.service.ipcf4.proxy: .svc_endp_hdl: Cannot connect! Failed to bind to service! IPCN returned IPCN_ERR_REMOTE_ERROR
Jul 01 03:30:36.275528 firestick-0043b55f78dc889e local0.info <APP_PACKAGE>[12897]: 2321519520 INFO com.amazon.kepler.appstore.iap.purchase.core: Attempt: 1; IPC Connect call return code:: -41
Jul 01 03:30:39.275456 firestick-0043b55f78dc889e local0.info <APP_PACKAGE>[12897]: 2321519520 INFO com.amazon.kepler.appstore.iap.purchase.core: Attempt: 1; Connection state callback from IPC. Status = DISCONNECTED
Jul 01 03:30:39.276147 firestick-0043b55f78dc889e local0.err <APP_PACKAGE>[12897]: 2321519520 ERROR com.amazon.kepler.appstore.iap.purchase.core: Attempt: 1; Timeout when waiting for connection state callback from IPC.
Jul 01 03:30:39.276332 firestick-0043b55f78dc889e local0.err <APP_PACKAGE>[12897]: 2321519520 ERROR com.amazon.kepler.appstore.iap.purchase.core: Failed to establish IPC connection.
Jul 01 03:30:39.276464 firestick-0043b55f78dc889e local0.info <APP_PACKAGE>[12897]: 2321519520 INFO com.amazon.kepler.appstore.iap.purchase.core: Invoking the response callback function for requestId 3a1b4d0a-3c2c-4eaa-b854-73f08a2ba4f4
Jul 01 03:30:39.276700 firestick-0043b55f78dc889e local0.info <APP_PACKAGE>[12897]: 2321519520 INFO AmazonIAPSDK: Invoking the callback for executeOperation with requestId: 3a1b4d0a-3c2c-4eaa-b854-73f08a2ba4f4
Jul 01 03:30:45.045736 firestick-0043b55f78dc889e local0.err <APP_PACKAGE>[12897]: 2843014048 ERROR com.amazon.keplerscript: [KeplerScript-JavaScript] [AmazonIAPSDK] Response status for GetUserData : FAILED
Jul 01 03:30:45.048955 firestick-0043b55f78dc889e local0.warning <APP_PACKAGE>[12897]: 19 W Volta:console.error: [AmazonIAPSDK] Response status for GetUserData : FAILED
Jul 01 03:30:45.049975 firestick-0043b55f78dc889e local0.info <APP_PACKAGE>[12897]: 2843014048 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] [AmazonIAPSDK] getUserData end time : 1782876645049
Jul 01 03:30:45.050293 firestick-0043b55f78dc889e local0.info <APP_PACKAGE>[12897]: 2843014048 INFO com.amazon.keplerscript: [KeplerScript-JavaScript] [AmazonIAPSDK] getUserData total time : 8816 ms
Regarding the AppstoreDevTest configuration on the store side, I confirmed that the certificate is correct and that the tester is properly registered. I did not find any issue with the AppstoreDevTest configuration.
We have also configured the settings related to LiveAppTest.
Specifically, we enabled production mode as described in the following documentation:
I understand that AppstoreDevTest requires the app package to be signed, so I followed the VPT custom signature procedure.
vega exec vpt pull --json-signature <vpkg> existing_digest.json.sig
vega exec vpt sign --resign existing_digest.json.sig <developer-private.key> <developer-cert.pem> updated_digest.json.sig
vega exec vpt push --json-signature updated_digest.json.sig <vpkg>
AppstoreDevTest was working until last year, but I believe it has stopped working this year.
Since the same flow used to work before but no longer works now, I suspect this may be caused by an OS/SDK/IAP/APPSTORE-side issue.
4. Expected Behavior
When launching the app through AppstoreDevTest, I expect the IAP API to work correctly.
4.a Possible Root Cause & Temporary Workaround
N/A
5. Logs or crash report
I cannot attach the real device logs directly because they contain confidential information.
If needed, I can share the logs via direct message.
App/Device Logs: N/A
Crash Logs: N/A
Crash Report: N/A
6. Environment
Library Version:
@amazon-devices/keplerscript-appstore-iap-lib": "2.12.16"
SDK Version:
Active SDK Version: 0.23.8358
Vega CLI Version: 1.2.22
App State: Foreground
OS Information:
NAME="OS"
OE_VERSION="4.0.0"
OS_MAJOR_VERSION="1"
OS_MINOR_VERSION="1"
RELEASE_ID="21"
OS_VERSION="1.1"
BRANCH_CODE="TV Ship"
BUILD_DESC="OS 1.1 (TV Ship/27)"
BUILD_FINGERPRINT="4.0.344088.0(3072cab629675a74)/27N:user/release-keys"
BUILD_VARIANT="user"
BUILD_TAGS="release-keys"
BUILD_DATE="Thu Jun 18 06:50:08 UTC 2026"
BUILD_TIMESTAMP="1781765408"
VERSION_NUMBER="2101010002720"
7. Example Code Snippet / Screenshots / Screengrabs
const getUserId = useCallback((): Promise<string> => {
return new Promise((resolve, reject) => {
;(async () => {
try {
const res = await _PurchasingService.getUserData({})
const code = res.responseCode
switch (code) {
case UserDataResponseCode.SUCCESSFUL:
resolve(res.userData.userId)
break
case UserDataResponseCode.FAILED:
reject(new Error(t('contents.amazonIapError.common.failed')))
break
case UserDataResponseCode.NOT_SUPPORTED:
reject(new Error(t('contents.amazonIapError.common.failed')))
break
default:
reject(new Error(t('contents.amazonIapError.common.failed')))
break
}
} catch (e) {
reject(e)
}
})()
})
}, [t])
Playback Issues
This is not a playback issue.
Additional Context
If there have been any recent changes to the AppstoreDevTest setup procedure, this may be caused by an issue in our app implementation or configuration.
Please let us know what has changed and what we should update on our side.