Giter VIP home page Giter VIP logo

godot-firebase-analytics's Introduction

Firebase Analytics plugin for godot engine

Use NativeLib Addon or NativeLib-CLI for installation.

It supports Android and iOS. Don't forget to enable Android and/or iOS platform in NativeLib before installing this plugin.

For iOS

Ensure that plugin NativeLib-Export installed and enabled

Add GoogleService-Info.plist in addons/nativelib-export/iOS (you could download it from the firebase console where you manage platforms of your project)

For Android

You should put google-services.json into android/build folder.

The google-services.json you could download from your firebase console where you manage platforms of your project.

Usage

The plugin's script will be automatically added to your autoloading list. So you will get global object fba with methods described below.

API

screen(name: String, screen_class: String)

Inform that user open this screen.

setUserId(id: String)

Set custom user id

logEvent(event: String, params: Dictionary = {})

Log specific event in you application. Params is optional.

userProperties(props: Dictionary)

Set user properties. Firebase will store the last value for every property.

start_checkout(item_id: String, item_name: String, item_category: String, price: float, currency: String = 'USD')

Inform that user starts purchasing in your app.

revenue(price: float, quantity: int, product: String, currency: String = 'USD', signature: String = '', receipt: String = '')

Inform that user finished purchasing. Optionally you could provide signature and receipt for purchase verification.

godot-firebase-analytics's People

Contributors

drmoriarty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

godot-firebase-analytics's Issues

iOS - add AnalyticsWithoutAdIdSupport

Hello!
Replace Analytics to AnalyticsWithoutAdIdSupport

Can you make an alternative analytics option, replacing Analytics with AnalyticsWithoutAdIdSupport?
I do not have OSX for such an operation and I do not know how to use POD

Apple is strict about collecting private data

Google Analytics for Firebase version does not match Google App Measurement

When try running with firebase-analytics plugin on iOS, i'v face this problem and is cause the app the crash immediately on load. Is there any fix for this like changing Google App Measurement version @@

*** Terminating app due to uncaught exception 'FIRAnalyticsVersionMismatch', reason: 'Google Analytics for Firebase version (70100000) does not match with Google App Measurement (80101000) version. Please update.'
terminating with uncaught exception of type NSException

Fba object

I have from 3.3.4 for some reason the global fba object was not added automatically,
to solve this problem, all autoload scripts tried to add plugin, mainui, pluginVariable, packageInfo, so fba didn't work to get

I did
func _ready ():
fba.logEvent ("forward")
pass

the identifier "fba" is not declared in the current scope

iOS : can't find the GoogleService-Info.plist

thanks for this plugin

I tried it on android it works fine
on iOS
I download it using nativlib for iOS I make sure that the little icon for iOS is on
I make sure that NativeLib-Export is downloaded
I download GoogleService-Info.plist and move it to addons/nativelib-export/iOS
the plugin appear on the export page and in the. autoload I check the box both
I run it but it tell me that its can't find the GoogleService-Info.plist and asked me to download it from firebase.console

Firebase analytics not running

Hi,

I did the setup following the documentation.
When I run the code there is no crash and no error.

When I run:

adb logcat -e FirebaseAnalytics

I don't see anything.

So it looks like it's not running.

I do have this file android/build/google-services.json

In autoload I do have this
image

And this is what I have in my first screen
image

Do you know what could I've done wrong?

Also I don't see anything in the gradle no reference to firebase at all.
I used the GUI to install the package.

No analytic logs found

Hi there, thank you so much for creating this cool addon. I'v successfully install this plugin but when running i doesn't see any log entries on Analytics Dashboard.

I'v autoload FBA, place google-services.json in android/build folder. I'v also call Fba.Screen(..) on some screen.

When running in debug, i'v see FirebaseAnalytics plugin inited!

But when checking Analytic Dashboard (even in debug view). These's nothing.

I'v change firebase-analytics to 19.0.0 to build because it's conflict with other plugins i'm using. Don't know if this cause Analytics not work:

FirebaseAnalytics.gdap

remote=["com.google.firebase:firebase-analytics:19.0.0"]

Thank you very much

Documentation is incomplete

I'm following the guide, but when I use logEvent() in my dg script, the function is not recognized (which makes sense because according to the guide, all the changes were made solely in the "android" subfolder).
What am I doing wrong?

'Google Analytics for Firebase version (70100000) does not match with Google App Measurement (80901000)

Hi. Thank you very much for your plugins.

I have Firebase Analytics plugin for Android & iOS installed. On Android it works like a charm.

But on iOS i'm getting the next crash message related to the plugin:

*********** main.m running app main Path: /Users/joseguerraprado/Library/Developer/CoreSimulator/Devices/45A54E94-7E41-4641-8458-CCC311D99A8E/data/Containers/Bundle/Application/577B1498-B69E-4D0C-BBE8-48D68B799C8D/ptc_xcoded.app godot_iphone /Users/joseguerraprado/Library/Developer/CoreSimulator/Devices/45A54E94-7E41-4641-8458-CCC311D99A8E/data/Containers/Bundle/Application/577B1498-B69E-4D0C-BBE8-48D68B799C8D/ptc_xcoded.app/ptc_xcoded cwd /Users/joseguerraprado/Library/Developer/CoreSimulator/Devices/45A54E94-7E41-4641-8458-CCC311D99A8E/data/Containers/Bundle/Application/577B1498-B69E-4D0C-BBE8-48D68B799C8D/ptc_xcoded.app os created setting data dir to /Users/joseguerraprado/Library/Developer/CoreSimulator/Devices/45A54E94-7E41-4641-8458-CCC311D99A8E/data/Containers/Data/Application/4096399D-26DD-4926-BA2B-D6BFF1F4D1AD/Documents from /Users/joseguerraprado/Library/Developer/CoreSimulator/Devices/45A54E94-7E41-4641-8458-CCC311D99A8E/data/Containers/Data/Application/4096399D-26DD-4926-BA2B-D6BFF1F4D1AD/Documents setup 0 2022-01-21 15:50:49.755056-0300 ptc_xcoded[2137:39401] Setting up an OpenGL ES 3.0 context. Based on Project Settings "rendering/quality/driver/driver_name" 2022-01-21 15:50:49.756189-0300 ptc_xcoded[2137:39401] failed to make complete framebuffer object 8cd6 2022-01-21 15:50:49.756337-0300 ptc_xcoded[2137:39401] Failed to create frame buffer! ******** setting up keyboard input view ******** adding observer for keyboard show/hide 2022-01-21 15:50:49.830941-0300 ptc_xcoded[2137:39401] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x6000022d23e0> F8BB1C28-BAE8-11D6-9C31-00039315CD46 start animation! 2022-01-21 15:50:49.855085-0300 ptc_xcoded[2137:39401] ERROR: AudioOutputUnitStart failed, code: -50 2022-01-21 15:50:49.855283-0300 ptc_xcoded[2137:39401] at: start (drivers/coreaudio/audio_driver_coreaudio.cpp:249) - AudioOutputUnitStart failed, code: -50 ERROR: AudioOutputUnitStart failed, code: -50 at: start (drivers/coreaudio/audio_driver_coreaudio.cpp:249) - AudioOutputUnitStart failed, code: -50 2022-01-21 15:50:49.917051-0300 ptc_xcoded[2137:39401] *** Terminating app due to uncaught exception 'FIRAnalyticsVersionMismatch', reason: 'Google Analytics for Firebase version (70100000) does not match with Google App Measurement (80901000) version. Please update.' *** First throw call stack: ( 0 CoreFoundation 0x00007fff23e3de6e __exceptionPreprocess + 350 1 libobjc.A.dylib 0x00007fff512a19b2 objc_exception_throw + 48 2 ptc_xcoded 0x00000001101bfa23 +[FIRAnalytics topLevelVersion] + 0 3 libobjc.A.dylib 0x00007fff512a1f93 CALLING_SOME_+initialize_METHOD + 17 4 libobjc.A.dylib 0x00007fff512a2dd1 initializeNonMetaClass + 632 5 libobjc.A.dylib 0x00007fff512a3d95 _ZL24initializeAndMaybeRelockP10objc_classP11objc_objectR8mutex_ttILb0EEb + 157 6 libobjc.A.dylib 0x00007fff512ae5e1 lookUpImpOrForward + 677 7 libobjc.A.dylib 0x00007fff5129de99 _objc_msgSend_uncached + 73 8 ptc_xcoded 0x00000001103aa8bf GADApplicationVerifyPublisherInitializedAnalyticsCorrectly + 1753 9 ptc_xcoded 0x00000001103aa667 GADApplicationVerifyPublisherInitializedAnalyticsCorrectly + 1153 10 libdispatch.dylib 0x00000001115fee8e _dispatch_client_callout + 8 11 libdispatch.dylib 0x00000001116003db _dispatch_once_callout + 66 12 ptc_xcoded 0x00000001103aa620 GADApplicationVerifyPublisherInitializedAnalyticsCorrectly + 1082 13 ptc_xcoded 0x0000000110358bee GADEnvironmentIsSupported + 3599 14 libdispatch.dylib 0x00000001115fdf11 _dispatch_call_block_and_release + 12 15 libdispatch.dylib 0x00000001115fee8e _dispatch_client_callout + 8 16 libdispatch.dylib 0x000000011160cd97 _dispatch_main_queue_callback_4CF + 1149 17 CoreFoundation 0x00007fff23da1869 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9 18 CoreFoundation 0x00007fff23d9c3b9 __CFRunLoopRun + 2041 19 CoreFoundation 0x00007fff23d9b8a4 CFRunLoopRunSpecific + 404 20 ptc_xcoded 0x000000010e9db9f0 -[GodotView drawView] + 160 ) libc++abi.dylib: terminating with uncaught exception of type NSException ***** Terminating app due to uncaught exception 'FIRAnalyticsVersionMismatch', reason: 'Google Analytics for Firebase version (70100000) does not match with Google App Measurement (80901000) version. Please update.'** terminating with uncaught exception of type NSException CoreSimulator 783.5 - Device: iPhone SE (2nd generation) (45A54E94-7E41-4641-8458-CCC311D99A8E) - Runtime: iOS 13.7 (17H22) - DeviceType: iPhone SE (2nd generation) (lldb)

Its weird because on Android i have no problem with this. I also try updating Cocoa Pod and all other things that i see on Internet, but the issue persists.

Thanks for your time.

malloc ERROR + 1504 Warnings

@DrMoriarty Hi, I have 1504 issues if firebase-analytics IOS plugin is enabled (same for "RateMe" plugin). Do you have some ideas, why it happens? I have 0 warnings w/o them. Mb I have to update something? Will be very grateful for any help :)
image

Godot v3.4.4.stable
Plugin was installed from NativeLib and works as expected. The problem is in 1500 warnings only.

firebase analytics data is no longer coming after update

Hi after updating the firebase-analytics library I can no longer see the android data. Firebase analytics library works very well on IOS, but this time android is broken, unfortunately is there anything I can do. I'm using Godot 3.4.2 stable.

Cannot get class 'FirebaseAnalytics'?

Thanks for answering me previously!

So despite having installed the plugin via nativelib-cli and having "Firebase Analytics" enabled and is already in the autoload and enabled, when running it on Android, it can't find the "FirebaseAnalytics" class. What did I miss? Thanks again!

Screenshot_2021-02-19_18-43-52

iOS - Xcode build error "There is no XCFramework found at..."

Hi there. Great work with the plugin. It works like a charm on Android.

But for iOS, however, I get this error on XCode for all the xcframework folders in the plugin, "There is no XCFramework found at [path to xcframework folder]" I can't build the app at all.

May I know how to solve this issue?

Godot version: 3.3.4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.