In app billing for subscription

I am trying the taifun extension for creating subscription in my app.

I have used this extension in my last app also.

whenever i am using this extension apk is not able to generate. giving metadata error.

If I am removing everything of the extension even from the palette then the apk is generated without error.

Now in this Fenix version of Kodular, Kodular has upgraded the billing library to more than version 3 which is now the future requirement of play store from Nov 21. Is this is the reason this extension is not supported now.

Request if someone can guide me to use kodular “in app billing” for the purpose of subscription. I am not able to find anywhere about this as everywhere data is available for Taifun billing extension which is not working.

That error has also been reported here

and there another extension was used…
it seems to be, the problem there was because an App Inventor project was used…

What happens, if you ty to create a new example project, import the billing extension, drag it to the working area and build the project?

As soon as I have my notebook back, I also will do some tests…

Taifun

1 Like

@Taifun
What I am doing is importing the blocks importing from old project as png to save time

So if i will not import the blocks as png but drag and drop from component it should work?

Thanks for your answer

@Taifun
i have checked it again

the moment we are dragging the extension to the component the apk is not able to generate

i am attaching the error

Kodular is unable to compile this project.
The compiler error output was
________Preparing application icon
________Creating animation xml
________Creating fragment xml
________Creating listview xml in res/layout/…
________Creating listview xml in res/layout-v21/…
________Creating xml in res/drawable/…
________Creating splash png in res/drawable/…
________Creating colors xml
________Creating styles xml
________Creating drawables xml v21
________Checking for firebase
________Creating provider_path xml
________Creating network_security_config xml
________Generating adaptive icon file
________Generating round adaptive icon file
________Generating adaptive icon background file
________Generating manifest file
________Attaching native libraries
________Attaching Android Archive (AAR) libraries
________Attaching component assets
________Invoking AAPT
AAPT time: 0.862 seconds
________Compiling source files
(compiling io/kodular/narenymca07/SalaryBijen2/Screen2.yail to io.kodular.narenymca07.SalaryBijen2.Screen2)
(compiling io/kodular/narenymca07/SalaryBijen2/Screen1.yail to io.kodular.narenymca07.SalaryBijen2.Screen1)
(compiling /tmp/runtime1334041856916570063.scm to com.google.youngandroid.runtime)
Kawa compile time: 3.458 seconds
________Invoking DX
DX time: 13.199 seconds
________Invoking ApkBuilder
com.android.sdklib.build.ApkCreationException: Failed to add /tmp/1626503502970_0.7346932856359245-0/youngandroidproject/…/build/tmp/classes3.dex
YAIL compiler - ApkBuilder failed.
.

I don’t know…
Just try it yourself

Did you try that with an empty project?

The bug has been added to the bug tracker

Taifun

2 Likes

Did you try @Boban’s suggestion here

Taifun

Checked not working @Taifun

@Taifun
I just want to share my experience probably it will be helpful for you

Billing extension is working fine when utilized in fresh project

Problem is arising when I am using 2 extension together
one is billing
other is SearchList “yo.Jewel.SearchList”

Program is going to metadata error when these are utilized together

Hope it will help for others

Now the biggest problem for me is to search in the program that where all this extension blocks are used

I dont know how to do easily

Thank you for confirming this finally…
This btw was the first question I asked…

What happens if you use that extension in an empty project and build it?

Taifun

in empty project it is functioning

but both these extensions together are not functioning

@Taifun
I am using the billing extension

my GotPurchasedSubciption is attached

I want to use function “when_subcribed” when the product is initially subscribed that is after payment is completed
how to use this?

Thank You
blocks(12)
blocks(11)

just call it in the else part of your if then else statement in the GotPurchasedSubscriptions event

to not display the “Thank you for subscribing” notifier each time the app is started, you also have to store a flag in TinyDB and set that flag as soon as the notifier has been shown the first time…
however in case the user switches the device and reinstalls your app there, the notifier again will be shown…

Taifun

Done thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.