Custom Length Vibrations For Notifications in Swift

263 Views Asked by At

I am developing an app that sends vibrations to a users phone based on how long the user trying to reach them holds down a button. However, it has to work when the users app is not open. Is there a way to attach custom haptics to a notification to achieve this? I was also thinking that generating user feedback haptics locally when a message is received would work but I need it to work when the user is not using the app. Any suggestions?

1

There are 1 best solutions below

2
On

This feature isn't available to the Firebase FCM library and would require the vibration settings configured on a per device basis.