I am developing a todo list app.. and I am trying to develop the notification using alarm.. I created the notification builder and channel, enabled the notification channel's vibration.. I did set the full screen intent to keep the notification available until the user touches it.. But until now I can't find a way to vibrate the notification correctly.. I did set the vibration pattern but the problem is the notification should vibrate for unspecific time.. and the vibration pattern doesn't do that.. is there any way to vibrate the notification without using the Vibrator class?.. Because the vibrator class doesn't solve the issue.. and the notification keeps vibrating even after the user touches the screen.. so please does anybody here has any idea how can I solve this issue? .. Thanks.. and by the way.. setting the vibration for the notification builder also is not the right way in this situation.
https://i.stack.imgur.com/CiQAb.jpg https://i.stack.imgur.com/JsDHq.jpg
Aucun commentaire:
Enregistrer un commentaire