Vibration API needs vibratePattern method for push notifications
Push notifications are allowed to specify their vibration patterns in the form of a list of on time - off time [1]. We, however, doesn't support that. The closest thing we have is rumble
method which requires the on time and the off time to be the same.
To fully support the push notification use case, we will need to have the vibratePattern
method. We probably want to have the same API as usensord
where it accepts a list of on time - off time and then the repeat.
After that, lomiri-push-service can migrate to this method instead of rumble
.
[1] https://gitlab.com/ubports/development/core/lomiri-push-service/-/blob/main/docs/_common.txt#L83-86