pushinbr / pam-native-firebase
Production Firebase Analytics, Remote Config, Messaging, Crashlytics and multi-app integration for PAM Native.
Package info
github.com/push-in/pam-native-firebase
Type:pam-native-plugin
pkg:composer/pushinbr/pam-native-firebase
Requires
- php: ^8.4
- pushinbr/pam-native: ^0.6.1
- pushinbr/pam-native-feature-flags: ^0.1.0
Requires (Dev)
- pushinbr/pam-native-testing: ^0.1.0
README
Official Firebase integration for PAM Native: multi-app configuration, Analytics, Remote Config, Messaging token lifecycle, Installations and Crashlytics.
composer require pushinbr/pam-native-firebase pam mobile prepare
$firebase = new Firebase(); $firebase->logEvent('checkout_completed', [ 'order_id' => $order->id, 'amount' => $order->total, ], static function (FirebaseOperationState $state, ?string $error): void { // Handle native acceptance or failure. }); $firebase->fetchRemoteConfig(static function (RemoteFetchResult $result): void { // Activated, fetched, throttled, or failed. });
Android reads .pam/google-services.json through the PAM host and uses pinned
main Firebase modules, not the discontinued KTX artifacts. Apple uses the
official Firebase Swift Package products. Named apps can also be configured at
runtime with FirebaseAppOptions.
Incoming notification presentation and routing remain owned by PAM Native's notification capability; this package owns Firebase token and service APIs.