Firebase cloud function working properly but not receiving the notification

firebase
android

(Vardan Kaushik) #1

Hi support,
I managed to setup firebase cloud function for sending push notification but
when post something in database my function got triggered it execute successfully but users are not reciving the notification , I even tried other methods also like sendToDevice , sendToTopics but facing the same problem their also . In logs of firebase function i am getting success message
Can you please tell what might be the problem
Thank you


(Karthik Kamalakannan) #2

Hi @vardan_Kaushik,

Welcome! I’ll pass this question on to @varun to answer this.


(Varun Raj) #3

Have you configured the APN Keys and credentials for android correctly? Because in most of the cases those are the one which make the flow go wrong.


(Vardan Kaushik) #4

Thank you soooo much brother , you guys are really great . My problem is solved , I am doing a very stupid mistake from like 2or 3 weeks , I forget to add user-permissions

uses-permission android:name="android.permission.INTERNET"/>
uses-permission android:name="android.permission.ACCESS_NOTIFICATION_POLICY"/>

Thank you guys


(Karthik Kamalakannan) #5

This is so humbling! Thanks for the compliments @vardan_Kaushik. Really appreciate it. If you find something interesting regarding Firebase that you would like to share, feel free. :slight_smile:

See you around! :slight_smile: