Skip to content Skip to sidebar Skip to footer

Firebase Functions User().oncreate: Pass Parameters

I have 2 types of users, admins and normal users. In my firebase database, each admin has a document in a 'texts' collection. So, when a new user is created, I want to check if it

Solution 1:

I think this other post can be very helpful for you. As you can see there, you can pass parameters to the firebase function using HashMap

Map<String, Object> data = new HashMap<>();
data.put("var1", text);
data.put("var2", text);

You can see the complete example in the shared link.

Post a Comment for "Firebase Functions User().oncreate: Pass Parameters"