firebase get unique id android firestore code example Example: firestore generate unique id let newUid = AngularFirestore.createId();