Warda
Warda

Reputation: 108

Not able to receive push notifaiction when I send it using fcm

I got the registration token from fcm but when I send Push Notification from FCM targeted single device entered the registration token and send it. I got no message on android simulator and fcm status failed.

Upvotes: 0

Views: 24

Answers (1)

Chathura Edirisinghe
Chathura Edirisinghe

Reputation: 367

Copy your google-service.json file to root folder (that contains www, config.xml etc).

Step 1: Login to your firebase console.

enter image description here

Step 2: On Project Overview Settings, Copy the Cloud Messaging ServerKey

My key ex:

`AAAAjXzVMKY:APA91bED4d53RX.....bla bla

Step 3: Replace the key

define( "API_ACCESS_KEY", "My key");

Finally Test the app :D

Upvotes: 1

Related Questions