question

newuser-ebcf5ba8-8879-4b95-a770-7fcda328ff5a avatar image
newuser-ebcf5ba8-8879-4b95-a770-7fcda328ff5a asked ·

Android IAP in Fragment

All the examples in documentation show the IAP setup done in activities. Is it possible to implement IAP in a fragment? The reason I ask is because I'm trying to load a recyclerView with the fetched products and I'm getting a specific error: E/c: In App Purchasing SDK - Sandbox Mode: Error in sendResponse: kotlin.KotlinNullPointerException. Its saying my fragment isn't getting initialized in time and was wondering if using a fragment for this was the issue? This doesn't seem like to difficult of a task to accomplish but cannot figure out why this is occuring.

iapandroid
10 |2000 characters needed characters left characters exceeded

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

0 Answers