Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vibration Pattern doesn't work #2350

Closed
darmawan01 opened this issue Jun 28, 2024 · 1 comment
Closed

Vibration Pattern doesn't work #2350

darmawan01 opened this issue Jun 28, 2024 · 1 comment

Comments

@darmawan01
Copy link

Describe the bug
Setup a notification channel or details, the vibration pattern not work

AndroidNotificationChannel(
    "DEFAULT",
    "DEDAULT",
    description: "Default notifications",
    importance: Importance.high,
    enableLights: true,
    enableVibration: false,
    vibrationPattern: Int64List.fromList([250, 250, 250, 250]),
    playSound: true,
  );
AndroidNotificationDetails(
      NotificationChannels.defaultChannel.id,
      NotificationChannels.defaultChannel.name,
      channelDescription: NotificationChannels.defaultChannel.description,
      importance: NotificationChannels.defaultChannel.importance,
      enableLights: NotificationChannels.defaultChannel.enableLights,
      enableVibration: NotificationChannels.defaultChannel.enableVibration,
      vibrationPattern: NotificationChannels.defaultChannel.vibrationPattern,
      playSound: NotificationChannels.defaultChannel.playSound,
      sound: NotificationChannels.defaultChannel.sound,
      priority: Priority.high,
      additionalFlags: Int32List.fromList([4]),
    )

To Reproduce
call notification.show() with the channel & details above

Expected behavior
Use app custom vibration pattern instead of andoird default pattern from setting

Sample code to reproduce the problem

@darmawan01
Copy link
Author

Fixed, need to uninstall the old apps. sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant