0

I have implemented the sample Firebase code from here to see if it works with my project.

I receive a notification when my app is killed or closed once the database child value changes, all is good, but how do I set the vibration, sound and led light blinking function using code from here? Do I need to detect the notification with android or I have to implement it with the payload somehow?

AL.
  • 36,815
  • 10
  • 142
  • 281
AlwaysConfused
  • 729
  • 2
  • 12
  • 37

1 Answers1

0

In the data portion of your FCM message add:

 ledColor: [215, 138, 138, 1], //show a blinking LED in ARGB format
Michael Fever
  • 845
  • 2
  • 8
  • 26