Is Calling a Firebase Function from the App to Send Notifications Secure?

In my mobile app, I use Firebase Messaging for notifications such as friend requests, new messages, and in-app purchase updates.
I’m calling a push-notification function that I created in Firebase Functions directly from the app. Is this approach open to abuse in any way?

If you know a better method, please let me know. Thank you.

My opinion is that calling a Firebase Cloud Function for push notifications directly from the client can be unsafe if not strictly secured, because the app cannot be trusted and may be abused to send spam or forged events. A better approach is to let the client only trigger data changes while a trusted backend validates the action and sends notifications securely.