0

I develop flutter project and I use FCM and Local Notification I have issues when iOS phone in background it's not vibrate.

my BackgroundHandler:

@pragma('vm:entry-point')
Future<void> _firebaseMessagingBackgroundHandler(RemoteMessage message) async {
  await Firebase.initializeApp();
  await setupFlutterNotifications();

  showFlutterNotification(message);
}

I use

await Vibration.vibrate(duration: 500);

to vibration.your text

Work
  • 1
  • 1

1 Answers1

1

In my opine you can't because notification vibrate is depends on phone settings so you can't do that even forcefully if notification vibration disable from phone settings.

for more details check this link it may helpful.

Vishal Zaveri
  • 1,372
  • 2
  • 5
  • 12