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.
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)
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.
The plugin's script will be automatically added to your autoloading list. So you will get global object fba with methods described below.
Inform that user open this screen.
Set custom user id
Log specific event in you application. Params is optional.
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.