I programmed my phone to vibrate in morse code, so I can read notifications while it’s in my pocket. Here’s how you can probably do it:
Install Tasker and AutoNotification (not free).
Download and import this profile thing that I made (tap “profiles” in the Tasker app and then tap “Import”).
Put this JS script somewhere on your phone. It isn’t very well documented but this site might help.
Tap on the profile, and edit the task (right side) so that it can find the .js script.
I put my script in Download/ because I’m lazy.
Test the task (press play). It should vibrate “SOS” in morse code. If it doesn’t work, StackOverflow cannot help you. Good luck.
(OPTIONAL) change the %text variable. I set it so that it only tells me the app that the notification is from, but you can change it to %antext or something (full list of variables)
Go back and configure the AutoNotification Intercept behavior (tap profile, left side). You can choose which apps you want to read.
If you did all these steps plus some other ones that I probably forgot, you should now have a new way to read notifications. I’ve found that friends and family will be marginally impressed.
Increase WPM. I’m not very good at reading morse code so I keep it at ~15 WPM. More experienced users could probably set it higher, although I’m sure at some point you would reach the physical limitations of your phone’s vibrate feature. This is set in the .js file, but it should be set in the task itself.
Disable the original notification vibration. Right now I have it set to wait 500ms because I couldn’t figure out how to get rid of the normal notification vibration.