registerDevice method

dynamic registerDevice()

Implementation

registerDevice() async {
  await FirebaseFirestore.instance
      .collection("devices${appIdEnumToString[appId]}")
      .doc(await deviceId)
      .set({
    "type": Platform.operatingSystem,
    "lastUpdated": DateTime.now(),
  }, SetOptions(merge: true));
}