firebase_device_id 0.0.3 icon indicating copy to clipboard operation
firebase_device_id: ^0.0.3 copied to clipboard

Helper to get the firebase device ID to use for remote config testing.

firebase_device_id #

Helper package to get the firebase device ID in Flutter to use for remote config testing. Exposes this functionality which is otherwise missing in the FlutterFire packages.

Auth token in example app

Why use this project? #

Quite probably, if you have come so far as to begin using AB tests in your Firebase setup, likely, you have also got Firebase messaging set up.

If this is the case and you want to try your AB tests using specific device tokens, go ahead and FCM token to identify your device for testing.

Test devices in firebase console

If you want to get this token without relying on cloud messaging however, you can do so using the Firebase installation package which comes bundled with firebase_core.

This project packages a solution, even if crude, and shows a practical example of how to get this token.

Usage #

final token = await getDeviceToken();

Then for how to actually use it? I would recommend getting the device token with the method above and copying it to clipboard. Then you can send it to slack or something to add into Firebase AB test to use.

Source usage #

The code to get the token and setup, is taken from the official documentation for Firebase installations.

0
likes
120
pub points
61%
popularity

Publisher

unverified uploader

Helper to get the firebase device ID to use for remote config testing.

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on firebase_device_id