The user ID to ascribe to the user of this app on this device, which must be non-empty and no more than 256 characters long. Setting the ID to null removes the user ID.
Plugin does not allow null values, as follows:
@PluginMethod()
public void setUserId(PluginCall call) {
try {
final String userId = call.getString("userId");
if (userId != null) {
firebaseAnalytics.setUserId(userId);
call.success();
} else {
call.reject("key 'userId' does not exist");
}
} catch (Exception e) {
call.reject(e.getLocalizedMessage(), e);
}
}
Hi @philmerrell ,
According to Firebase setUser operation docs:
Plugin does not allow null values, as follows:
Best regards,
Vitor Pires Lopes