Skip to content

Conversation

@FlynnD273
Copy link
Contributor

It turns out Android can't actually set per-notification vibration patterns since Android 8. So the code that's currently in the app that tries to grab the vibration pattern from the notification just always returns null. The only way to set custom vibration patterns in modern Android is by setting the notification channel's vibration pattern. And other apps aren't allowed to read this pattern. This is a (perhaps a little hacky) workaround for that. If a notification body contains a | symbol followed by a comma-separated list of numbers, it'll parse that as a vibration pattern instead and remove it from the body when displaying on the watch. If it can't parse it, then it will leave the body and vibration pattern untouched.

@FlynnD273
Copy link
Contributor Author

Closed in favour of #73

@FlynnD273 FlynnD273 closed this Dec 20, 2025
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

Successfully merging this pull request may close these issues.

1 participant