Need Help: In-App Purchase Not Working as Expected : One-Time “Remove Ads”

Hi everyone :kodular: :waving_hand:

I’ve published my Android app on Google Play:

:link: App link: → Please Install and click floating icon inside app to see UI for One time purchase.

I’m using a one-time (managed) in-app purchase to remove ads permanently, but it’s still not working as expected, so I’m looking for help from experienced developers here.

:folded_hands: Special thanks to @RaYzZz and @Ibrahim_Jamar for helping and guiding me so far. Even after applying their suggestions, the in-app purchase is still not behaving correctly, so I’m hoping to get a few more eyes on this.


:package: In-App Product Details (Play Console)


:bullseye: What I Want to Achieve

  1. :white_check_mark: After purchasing Remove Ads, all ads should be disabled permanently
  2. :white_check_mark: If the user closes and reopens the app, ads should remain hidden
  3. :white_check_mark: If the user uninstalls and reinstalls the app, the purchase should be restored
  4. :white_check_mark: Ads should not reappear due to app restart or or network issue must save in local tinyDB.

:puzzle_piece: Current Logic Blocks


:red_question_mark: Issues / Concerns

After using above block I’m not able to open In-app purchase pop-up when clicking Payment button in app. also can someone please verify whether my block logic is correct for a one-time “Remove Ads” product? Is this the right approach using TinyDB + LoadOwnedPurchases together?


Thanks a lot in advance for your time and support :folded_hands:

Isn’t the problem with the in-app purchases component?

When I clicked continue with payment nothing triggered

Are you sure u set everything correctly on continue button? In you’re blocks your showing screen2, is this screen the main purchase screen?

This is the continue button bro. :frowning:

Edit:

also I keep In_App_Billing1 Common properties
Suppress Toast = unchecked
Test Mode = unchecked

Also these are the few blocks, I think I’m missing something from these

Anyone with expertise, please help me out.

I’m not naming anyone, but a few people contacted me offering paid services. I’d like to clarify that I posted here seeking community support, as this space is meant for helping each other.

Thanks in advance for your understanding and help. :folded_hands:

Hi dear,
remember that ownedProducts is a list.

I’m confused @RaYzZz, It’ll be great if you help me with exact blocks which fixed this issue.




Sorry, I have to step away from the PC, as soon as I get home I’ll try to explain it better.

1 Like

Remove the make a list block

Taifun

1 Like

Hi @RaYzZz & @Taifun can you please check, ae they correct now?

This whole process help me to resolve this issue.

Thank you everyone!

Hi dear,

Could you explain in detail what solved the problem?
Because it looks like you followed our advice, the guide was created afterward :grin:

1 Like

Like blocks etc​:blush::hugs:

1 Like

I marked your resolution as solved. That was pretty much clear solution.

And that whole guide is based on our combined efforts :slight_smile:

2 Likes