Is it possible to make an Android device vibrate when receiving notifications in the background with Firebase Cloud Messaging? From the Syntax Reference I have seen and tested that sound is supported, but no info on vibration. Or is it somehow possible to provide a customized implementation for this notification where I would directly set the vibration?
From what I have tested the format of the FCM Notification message seems to be quite rigid, so for customized notifications, the solution seems to be:
data
parameter but doesn't contain the notification
parameter (Sources: Message JSON Syntax, FCM Message Types)onMessageReceived(RemoteMessage remoteMessage)
from the application's FirebaseMessagingService
(Example)