-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confused and need some help. #50
Comments
The 2.0-rc1 isn't matched by any of the docs, those refer to the older 1.x variants. Right now, building from master (so #45) and using the old docs is probably easiest, as they are very close. Feel free to ask for details on the Godot discord in mobile channel! |
@NianoTT thanks for the reply! To clarify, you're saying I shouldn't simply use the .aar and .gdap files for 2.0 given here, which are outdated: https://github.com/godotengine/godot-google-play-billing/releases And instead I need to compile with the latest changes? Also, do you happen to know, will this work the same in Godot 4? I have another project there. |
There are 2 variants of a "new" plugin currently here: one is based on #36, its the aar/gdap 2.0-rc1 release. It has some changes compared to the previous one - which is described in the docs - so you have to adapt the code from there. The current master, based on #45, doesn't have a release yet, you would have to build it yourself, but it keeps compatibility with the old version (mostly), so you can use the code from the docs. It also includes a few bugfixes. Probably better to use the latter if building it from source isn't an issue for you. It also is supposed to work with Godot 4, but I haven't tried myself. The ones from here: https://github.com/godotengine/godot-google-play-billing/releases do not work with Godot 4 to my knowledge. |
Gotcha. I'll give it a shot, really appreciate the info. |
Hey I have a release located |
I have followed your tutorial and got it working with Godot 3.5 Unfortunately my project is in Godot 4 and it crashes when trying to call querySkuDetails() Is there a different function to work with Godot 4? Someone commented in #43 that getSkus is deprecated and you need to use getProducts manually? You say you have tested and it works with Godot 4 - is that with the code from your tutorial and the 1.1.2 release or is there something else I should be using? Thanks |
What errors are you currently getting? If you do an adb logcat what errors are there? I have tested my release of 1.1.2 and it worked fine for me. |
I removed some of the account string because I'm not sure if that is some unique identifier for me. It connects fine but when trying to call querySkuDetails it returns this: 06-26 16:21:12.512 6994 7762 I Finsky : [2470] kki.a(19): org.godotengine.intransitivedice: Account from first account - [GSyNHxMN...REDACTED] Then there are logs for closing the app. EDIT: Sorry I had logcat only outputting with findstr godot and that was my app rather than the test app but still the same relevant code. Here's the output from the test app right after the "Billing preferred acount..." line: 06-26 17:04:45.051 21019 21161 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x8aaa6108 in tid 21161 (GLThread 2389), pid 21019 (tengine.IAPTest) then this that semes relevant: 06-26 17:04:46.737 366 366 I lmkd : 0(delay), 50(swap), 7(freelimit), 0(reentrymode) memory pressure events were skipped after a kill! I'm not sure what that means |
It seems that the problem is when a signal returns Object[].class I removed the return object from sku_details_query_completed and recompiled the plugin. It works now, with no details dictionary returned. This is fine for me because I know the item details already but still needed the query to be completed. It doesn't seem that the object is converted to a dictionary by the utils function as it should be and godot doesn't like the object that is returned I guess. |
Try this |
Hey, so I'm new to all the IAP stuff. Trying to implement for Godot 3.5.2 using 2.0-rc1. But I'm very uncertain, seems like the docs aren't up to date and I don't know what to trust. Google mentions needing to use
onResume()
function, but the Godot signalbilling_resume
is not mentioned anywhere in 3.5 docs, only in 4.Can I just go by the docs for Godot 4, even though I'm using 3.5? Is there up-to-date sample code anywhere? Anything else I should know?
Thanks a bunch!
The text was updated successfully, but these errors were encountered: