-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
It says AndroidIAPP singleton not found #11
Comments
Did you turn on it on project settings? |
i am having the same problems . when i extracted the files , it didnt create any folder named android_IAPP. so i went on and created a folder in my addons dir and put all four files in that directory . when i opened project settings -> plugins , i had the option to enable the plugin , did that and when i run my game it sends out error saying "AndroidIAPP singleton not found" , do i add the AndroidIAPP.gd script as singleton that came with the plugin ? |
extends Node var billing = null const ITEM_CONSUMATED: Array = [ signal purchase_successful(product_id) func _ready(): func _setup_billing():
func _on_start_connection() -> void: func _on_connected() -> void: func _on_disconnected() -> void: func _on_query_purchases(response) -> void: func _on_query_purchases_error(error) -> void: func _on_query_product_details(response) -> void: func _on_query_product_details_error(error) -> void: func _on_purchase_updated(response) -> void: func _process_purchase(purchase) -> void:
func _on_purchase_error(error) -> void: func _on_purchase_consumed(response) -> void: func _on_purchase_consumed_error(error) -> void: func initiate_purchase(product_id: String) -> void: func is_billing_ready() -> bool:
|
Indeed! Like Protik, I too have it as an autoload and the addon enabled in product settings |
Run it on android, the singleton doesn't work on desktop or laptop. The singleton will be found. |
I am having the same problems, did anyone solve this issue? |
@Suthameow |
@code-with-max Could you please provide us a step by step link. (The AndroidIAPP plug in was checked.) Thank you very much |
I made it work finally! func _on_connected() -> void: |
@alfredogarciaw @code-with-max Thank you, all. Right now I met a new issue: "Invalid call. Nonexistent function 'purchase' in base "'JNISingleton'."" Thank you very much |
Remember to add ITEM_CONSUMABLES in google play console with price Code
|
@alfredogarciaw @code-with-max Thank you very much; now it works. |
I downloaded this and put the android_IAPP (extracted) folder in my addons folder. When running the example for purchases as a singleton and I get the error message: "AndroidIAPP singleton not found"
I used Engine.get_singletons and this is what I get
["Performance", "TextServerManager", "PhysicsServer2DManager", "PhysicsServer3DManager", "NavigationMeshGenerator", "ProjectSettings", "IP", "Geometry2D", "Geometry3D", "ResourceLoader", "ResourceSaver", "OS", "Engine", "ClassDB", "Marshalls", "TranslationServer", "Input", "InputMap", "EngineDebugger", "Time", "GDExtensionManager", "ResourceUID", "WorkerThreadPool", "ThemeDB", "JavaClassWrapper", "JavaScriptBridge", "AudioServer", "CameraServer", "DisplayServer", "NativeMenu", "NavigationServer2D", "NavigationServer3D", "RenderingServer", "PhysicsServer2D", "PhysicsServer3D", "XRServer"]
The text was updated successfully, but these errors were encountered: