Download the PHP package smronju/nativephp-firebase-analytics without Composer
On this page you can find all versions of the php package smronju/nativephp-firebase-analytics. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download smronju/nativephp-firebase-analytics
More information about smronju/nativephp-firebase-analytics
Files in smronju/nativephp-firebase-analytics
Package nativephp-firebase-analytics
Short Description Google Analytics for Firebase on Android — installs the SDK and your google-services.json, logs custom events, and turns collection on or off for a user's opt-out.
License MIT
Homepage https://github.com/smronju/nativephp-firebase-analytics
Informations about the package nativephp-firebase-analytics
NativePHP Firebase Analytics
Google Analytics for Firebase in a NativePHP Mobile app, on Android.
Installing it is what gets AdMob's user and engagement metrics (sessions, active users, retention, ad revenue per user) flowing once your AdMob app is linked to a Firebase app. On top of what Firebase collects automatically, it lets PHP log custom events and screen views, and turn collection off for a user who opts out.
Installation
Download google-services.json for your Android app from Firebase console → Project settings → Your apps and put it in your Laravel project root. The build copies it into the Android project and fails loudly if it is missing.
Then rebuild: php artisan native:run android.
Usage
Every method is a silent no-op outside the native runtime (tests, php artisan serve).
Platforms
Android only. iOS needs GoogleService-Info.plist and the Firebase pod and is not implemented yet.
Privacy
Firebase Analytics collects an app-instance ID, device and app information, and usage events, and shares them with Google. Disclose it in your privacy policy and in Google Play's Data safety form, and give users a way to opt out (setCollectionEnabled(false)).
License
MIT