Skip to content
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

Unable to get it to work (Engine.get_singleton("GodotFAN") is causing problems) #9

Closed
ai-boson opened this issue Dec 25, 2020 · 11 comments

Comments

@ai-boson
Copy link

Engine.get_singleton("GodotFAN") is returning null. So folder "GodotFAN" is not being fetched. I placed GodotFAN under android folder as mentioned and then added modules="org/godotengine/godot/GodotFAN" in project setting > Compression> Android.
What am I doing wrong as error is mostly on my side? Thanks for your time.
Code is like this only for interstitial ads:

var facebookAds
func ready()
         facebookAds = Engine.get_singleton("GodotFAN")
	facebookAds.FacebookAdsInit(get_instance_id(),"758484777344_6483885593","","")
@MrZak-dev
Copy link
Owner

MrZak-dev commented Dec 25, 2020

did you try using the Example provided with the plugin ?

@ai-boson
Copy link
Author

ai-boson commented Dec 26, 2020 via email

@MrZak-dev
Copy link
Owner

MrZak-dev commented Dec 26, 2020

You should place the complete folder inside of android folder : example : my_game_path/android/GodotFAN

@MrZak-dev
Copy link
Owner

PqW2bLKkxn.mp4

I have tested the plugin on the last stable version of godot 3.2.3, it is still working as expected

@ai-boson
Copy link
Author

ai-boson commented Dec 27, 2020 via email

@MrZak-dev
Copy link
Owner

The folder architecture should be the same as the example provided with the plugin , check it .

@ai-boson
Copy link
Author

ai-boson commented Dec 28, 2020 via email

@MrZak-dev
Copy link
Owner

are you testing on Android or only on windows ?

@ai-boson
Copy link
Author

ai-boson commented Dec 28, 2020 via email

@ai-boson
Copy link
Author

ai-boson commented Dec 28, 2020 via email

@ai-boson
Copy link
Author

ai-boson commented Dec 29, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants