I am designing an application which has two types of user, vendor and Customer. Vendor delivers product and customers order them.
I want to send a notification when a Customer orders something from a vendor. Only that vendor should get notification. Similarly, when the product is mark delivered by vendor, a notification should appear on the customer side.
I was thinking of storing tokens in Firebase Database in the profile for each user, so let's say a customer orders something, he can retrieve Vendor's token so a notification appears on Vendor's side.
I recently came across this answer Cannot resolve symbol com.google.firebase.messaging.Message
which says it's not possible to do so, without admin SDK, which can't be used in Android App.
What options do I have for this use case?
Do I have to create my own server? Is there anyway to do this with just Firebase?