Android Question Google Billing Test Example - The BUY button is missing - Could you please test it on your side as well?

artsoft

Active Member
Licensed User
Longtime User
Hi folks!

Regarding this page:
https://www.b4x.com/android/forum/threads/googleplaybilling-in-app-purchases.109945/

I tested it on my smartphone with the new Google Billing Lib 5 and while trying to buy the "sample title" for 0,99$, unfortunately I cannot find any BUY button.

After click on "Remove Ads", the google billing windows appears, but only with string "Sample Title" on the left and "0,99$" on the right side. See please the screenshot below! That's all.... the rest is empty space.

So, what is wrong now?

IMG_20221115_091439.jpg


Last week, I still could see this button... :-(

Thankful for any help here.

Regards
ARTsoft
 
Last edited:

artsoft

Active Member
Licensed User
Longtime User
Which targetSDKVersion?

Do you add this in Manifest Editor?

B4X:
CreateResourceFromFile(Macro, GooglePlayBilling.GooglePlayBilling)

Thanks for your answer!

Yes, of course. The button was last week still visible ... but since this morning it is not present.

Here the manifest:

B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="31"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
CreateResourceFromFile(Macro, GooglePlayBilling.GooglePlayBilling)

Best regards!
 
Upvote 0

artsoft

Active Member
Licensed User
Longtime User
Have you tried to restart the device? This form is handled by Google SDK.

Yes, Erel! Yesterday, I restarted all my devices on which the Google billing test app is currently installed.

But always the same effect with missing button on each device.

Currently for developing, I am using 3 devices:
_______________________________________________________________
REDMI Note 10 Pro with Android 12
Blackview Tablet with Android 11
SAMSUNG S6 device with old Android version 7

On all devices the same :-(

Regards
 
Upvote 0

artsoft

Active Member
Licensed User
Longtime User
My demo app works for my own inapp product. The remove ads is not working.

https://www.b4x.com/android/forum/threads/in-app-billing-demo.103003/

Maybe it only works for product "registered" in Play Console. The ADS_SDK_ID is not registered.

Ok, thanks for your help.

My app is currently not registered at Google - only the app is saved as an app project - but still in developing mode.

Per default, my app is restricted regarding some nice features and provides in this restricted mode some ads which is also configured at Google (one small ads banner).

My goal is to implement a "once in-app-buy" which removes finally the ads in the app and enables it to provide the full functionality to the users.

And of course, it has to be possible to reset the app - in order to go back to the restricted mode - if the user wants to do this.

I hope we all together can find a solution asap in this case.
In my code, there are a lot of IF-conditions which handle the "restricted app mode" and the "full app mode".

Thanks all for the help.
 
Upvote 0
Top