firebase_instance_id
a flutter plugin to retrieve the firebase app instance id# device_unlock
how does it work
app instance id is an unique identifier for an instance of the app. in other words, each user/installation has such a value. it is a 32-character hex number like a12bc3d456789efabc123456a8a5de56.
obs.: the project should have firebase configured for this plugin to work.
sample code
import 'package:firebase_instance_id/firebase_instance_id.dart';
var instanceid = await firebaseinstanceid.appinstanceid ?? 'unknown installation id';
Comments are closed.