question

benjamin halkum avatar image
benjamin halkum asked

IAP Causes Splash Freeze

I am using the Amazon Fire App Builder to create a streaming app. It works great when testing. Submitted fine to Amazon, no issues.

However, when I enable IAP and follow the steps to add my subscription IAPs, it freezes on the splash screen. If I disable IAP it loads again. Seems to be an issue in the actual purchasing component?


E/SplashActivity: Failed to put data in cache for recipe

java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object com.amazon.android.module.Module.getImpl(boolean)' on a null object reference

at com.amazon.android.contentbrowser.helper.PurchaseHelper.initializePurchaseSystem(PurchaseHelper.java:145)

at com.amazon.android.contentbrowser.helper.PurchaseHelper.<init>(PurchaseHelper.java:131)

at com.amazon.android.contentbrowser.ContentBrowser.onAllModulesLoaded(ContentBrowser.java:758)

at com.amazon.android.tv.tenfoot.ui.activities.SplashActivity$1.doInBackground(SplashActivity.java:119)

at com.amazon.android.tv.tenfoot.ui.activities.SplashActivity$1.doInBackground(SplashActivity.java:109)

at android.os.AsyncTask$2.call(AsyncTask.java:305)

at java.util.concurrent.FutureTask.run(FutureTask.java:237)

at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)

at java.lang.Thread.run(Thread.java:761)


iapfire app builder
1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

benjamin halkum avatar image benjamin halkum commented ·

As an update:


In the purchasehelper.java on line 145, if I comment out .getImpl(true); I actully get the app to load. However, when I click to go premium to test I get an error my network connection is unavailable.

0 Likes 0 ·
Levon@Amazon avatar image
Levon@Amazon answered

Hi Benjamin,

I would suggest posting on the Fire App Builder repo on GitHub:

https://github.com/amzn/fire-app-builder/issues

1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

benjamin halkum avatar image benjamin halkum commented ·
I've now done this. I see a Levon who has answered stuff over there previously, happen to be you?


I'm very lost on this. lol

0 Likes 0 ·
benjamin halkum avatar image
benjamin halkum answered
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.