# Issue with IAP Subscription \[Oct 2022\]

**URL:** https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326
**Category:** Issues / Bugs
**Created:** [October 7, 2022, 10:23am UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326 "2022-10-07T10:23:04Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![dani19130a](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dani19130a/32/120952_2.png) [@dani19130a](https://community.thunkable.com/u/dani19130a)
#### Post date: [November 24, 2022, 11:29am UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/42 "2022-11-24T11:29:49Z")

</div>

Hi @cassandra  
thank you for the feedback and effort, I made some test but it looks that **nothing has changed for me**.

The " **then do" branch** of IAP purchase, in the code below, **never fires**.

The first log instruction inside the “click” block is executed every time the user starts the purchase flow.  
For the the second one inside the then do branch nothing happens instead.

Before starting my test I created a **new iOS build** to be sure to include the last fixes on the platfom.

Please, let me know if I can be helpful or if I can provide further evidence.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/3/e34252fd876112534fda46b65a5c47c8cd4f88fa.png)

---

<div class="post-metadata">

### Author: ![dani19130a](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dani19130a/32/120952_2.png) [@dani19130a](https://community.thunkable.com/u/dani19130a)
#### Post date: [November 29, 2022, 8:12am UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/43 "2022-11-29T08:12:00Z")

</div>

Dear @cassandra @conroy33,  
do you have any updates for us, please?  
Thanks  
Regards,  
Daniele

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [November 29, 2022, 5:20pm UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/44 "2022-11-29T17:20:01Z")

</div>

Brian has opened this ticket back up and is taking a look at why the fix we released last week did not work. He may be reaching out for more information from you to help.

---

<div class="post-metadata">

### Author: ![brianl](https://avatars.discourse-cdn.com/v4/letter/b/f14d63/32.png) [@brianl](https://community.thunkable.com/u/brianl)
#### Post date: [November 29, 2022, 11:59pm UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/45 "2022-11-29T23:59:58Z")

</div>

Thank you for testing!  
I understand that IAP was not working as intended for android, but from your testing, this seems to also be the case for IOS. Do you know what the error is after calling the purchase block?

---

<div class="post-metadata">

### Author: ![dani19130a](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dani19130a/32/120952_2.png) [@dani19130a](https://community.thunkable.com/u/dani19130a)
#### Post date: [November 30, 2022, 8:23am UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/46 "2022-11-30T08:23:13Z")

</div>

Hi @brianl ,  
thank you for your reply, did you have the chance to read all the thread here?

Anyway, yes, i’m using only iOS in this case ( for Android I have further problems with thunkable and discussed in other threads).

Regarding your question, I don’t know the error because the “then do” branch of IAP purchase never fires for me.

I’m available for a call if needed and I’m also curious about what you discovered during your analysis and your bugfixing.

Please, let me know the timing for your fixing because, as you can see, this thread started long time ago and other customers cannoy use iap yet.

I’m blocked after one year of development as a pro customer.

Thanks  
D

---

<div class="post-metadata">

### Author: ![dani19130a](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dani19130a/32/120952_2.png) [@dani19130a](https://community.thunkable.com/u/dani19130a)
#### Post date: [November 30, 2022, 4:37pm UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/47 "2022-11-30T16:37:02Z")

</div>

@brianl @cassandra @conroy33 please give an update soon.

I also sent a request to help to your customer service, billing service etc via email.

I’m also starting to contact thunkable employees via linkedin.

Thank you for your attention.

Regards,  
D

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [November 30, 2022, 9:15pm UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/48 "2022-11-30T21:15:14Z")

</div>

@dani19130a I’d like to discourage you from contacting Thunkable employees outside of official support channels. It’s wholly unnecessary. You have tagged everyone in support on this post.

Brian has replied in good faith that he is still working on the issue and asked for your assistance in doing so. He reasonably just asked if you could apply a label to your project and print out the error.

---

<div class="post-metadata">

### Author: ![dani19130a](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dani19130a/32/120952_2.png) [@dani19130a](https://community.thunkable.com/u/dani19130a)
#### Post date: [November 30, 2022, 10:54pm UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/49 "2022-11-30T22:54:53Z")

</div>

Hi @conroy33 I need to try all that I can to have a plan for this fix before changing platform and waste a year of work.

You didn’t share any useful information yet and this is very bad for us as customers.

What are you waiting for the fix? Please be transparent and say which is the plan or that this fix is not important for you, it will be more useful for us.

---

<div class="post-metadata">

### Author: ![wei](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/wei/32/26160_2.png) [@wei](https://community.thunkable.com/u/wei)
#### Post date: [December 1, 2022, 11:16pm UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/50 "2022-12-01T23:16:28Z")

</div>

I can confirm this issue on Android is fixed.

---

<div class="post-metadata">

### Author: ![wei](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/wei/32/26160_2.png) [@wei](https://community.thunkable.com/u/wei)
#### Post date: [December 1, 2022, 11:21pm UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/51 "2022-12-01T23:21:31Z")

</div>

If you said the `then do` never fire, does the Apply pay popup for you? Why do you freeze the screen before you purchase the subscription?

Wei

---

<div class="post-metadata">

### Author: ![martint](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/martint/32/96689_2.png) [@martint](https://community.thunkable.com/u/martint)
#### Post date: [December 2, 2022, 8:43am UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/52 "2022-12-02T08:43:28Z")

</div>

I notice this is a subscription purchase and the ‘Is It Consumable’ is set to True. Can you have a Consumable Subscription?

---

<div class="post-metadata">

### Author: ![dani19130a](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dani19130a/32/120952_2.png) [@dani19130a](https://community.thunkable.com/u/dani19130a)
#### Post date: [December 2, 2022, 1:07pm UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/53 "2022-12-02T13:07:01Z")

</div>

Hi @wei  
thanks for replying, some feedback for you below, is it possible to arrange a call please and discuss it in a detailed way?

Regarding your questions

- as I said, I’m experiencing the issue on Apple iPhone iOS
- yes, I can see the Apple purchase popup but the problem is that the `then do` branch never fires, I can say this because the logging instruction with message `Start Apple purchase flow` is never executed
- why are you talking about the freezing of the screen? Before the purchase block I placed a very simple logging instruction

Please, let me know.

Hi @martint  
Thanks for your help, I did a simple test right now after setting the parameter `is it consumable` to `false` (as you suggested) but the `then do` branch still does not fire.

Please, dear Thunkable staff, let me know what can I do and what is your plan for fixing, I’m available for you for any kind of test or anything that can contribute to the resolution.

Regards,  
D

---

<div class="post-metadata">

### Author: ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)
#### Post date: [December 4, 2022, 10:43am UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/54 "2022-12-04T10:43:13Z")

</div>

Hi there, thank you for your fix!  
I’m going to try it today (or tomorrow)

Just a question, do I need to change all the blocks again or replace them, or shall i just send the release to the stores?

When you changed something few months ago, block were different and i had to replace them. If i dont need to replace them, i’d save a lot of work.

Thank you in advance!

---

<div class="post-metadata">

### Author: ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)
#### Post date: [December 4, 2022, 9:55pm UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/55 "2022-12-04T21:55:57Z")

</div>

Hi there, i’ve been testing all day, here are my questions on your Android fix.

- On the event of IAP “Purchase Subscription”, the app shows the Box twice (for box i mean the white box with green button that allows you to but the subscription from Google). So my customer is asked twice if he wants to subscribe.

- Whare are the main different between “Most recent active purchases” and “Get purchase History”? I’m getting the same results and i dont know which one i should use.  
My subscribtion is auto-renewing, 1 year long

- What’s the definition of consumable? I mean, during the set up in the store i said my subscription would renew automatically after 1 year, does it make it consumable or not?

- When trying to reach IAP docs from thunkable’s project main page by clicking on the component’s “Learn More”, it leads me to the project page again.  
iap docs

These are my blocks related  
 ![thunkable_support](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/f/cf8d7d400853d156ff85706a0c211af89c7a115a.png)

After all, i want to thank you all for the great improvement and for this fix which i’m sure it’ll get better soon.

---

<div class="post-metadata">

### Author: ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)
#### Post date: [December 7, 2022, 12:19pm UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/56 "2022-12-07T12:19:29Z")

</div>

Hi there everyone, after few more days of testing i can confirm these bugs still running on Android:

- When called, the “Purchase Subscription” shows twice, user i guess gets confused of paying two times the same subscription
- The blocks unser the “Purchase Subscribtion” dont fire at all.At least now it allows people to subscribe but still quite inconvinient

I show you my blocks

 ![thunkable_support](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/c/7cffb5d6e4ff824baad78e85e30bdfcbf25e6549.png)  
The “Then Do” section doesn’t work at all, even the Label doesn’t show any “error” message

---

<div class="post-metadata">

### Author: ![dani19130a](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/dani19130a/32/120952_2.png) [@dani19130a](https://community.thunkable.com/u/dani19130a)
#### Post date: [December 28, 2022, 11:43am UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/57 "2022-12-28T11:43:43Z")

</div>

I would like to share with the community the issue ticket that I opened on github regarding the bug on iOS

> <https://github.com/thunkable/thunkable-issues/issues/1212>
>
> \*\*Summary of issue\*\*
> The "then do" branch of IAP purchase block never fires.
> 
> …
> \*\*Details\*\*
> If I test the code block below the Apple purchase flow appears but at the end of the flow, the then do branch never fires and so I'm not able to execute all the instructions inside, for example, set the variable that stores the fact that the purchase has been already done.
> 
> I can say this because the first log instruction is always executed while the second one with the text "Scrn buy subscription" is never executed.
> 
> \*\*External link\*\*
> You can find the discussion in the community https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/42?u=dani19130a
> 
> \*\*Attachments\*\*
> \<img width="593" alt="image" src="https://user-images.githubusercontent.com/3210001/208739508-adb19ee8-cc2e-48d0-a3d5-221568de4dcd.png"\>

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [December 28, 2022, 2:02pm UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/58 "2022-12-28T14:02:17Z")

</div>

@conroy33 are there any updates on this? It’s been a month since we heard from the team on any updates to this. I have intentionally told a user it’s impossible to add these until this bug is sorted out. Can we please have an update on whether it’s fixed or not? If not, is there a timeline? If not, what does your team need from users in order to help triage this?

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [December 28, 2022, 3:05pm UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/59 "2022-12-28T15:05:37Z")

</div>

@jared Thanks for checking up on this. Ioannis and I have been working with specific users who are having issues to help isolate what may be going on there. IAP is a third-party library owned by someone else and we can only be test on a published app, this is a trickier situation. I can assure you and everyone else though that we are working toward a fix as quickly as possible.

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [December 28, 2022, 3:10pm UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/60 "2022-12-28T15:10:18Z")

</div>

Thanks for the update. I’ll update my potential client!

So no potential timeline tho?

---

<div class="post-metadata">

### Author: ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)
#### Post date: [December 28, 2022, 3:16pm UTC](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326/61 "2022-12-28T15:16:52Z")

</div>

@jared No timeline yet but I will get you one on here as soon as that is solidified with our engineering team.

[Previous page](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326.md?page=2)

[Next page](https://community.thunkable.com/t/issue-with-iap-subscription-oct-2022/2073326.md?page=4)
