Vibrating a smartphone is one of the possible approaches to inform a user about important events. In this recipe, you will learn how to programmatically start vibrations.
As an example, you will prepare a simple page with the Start vibrations button. After clicking on it, the vibrations should be started only for 1 second.
To step through this recipe, you only need the automatically generated project.
To prepare an example that launches vibrations, perform the following steps: