Sometimes I read that
notification.defaults|= Notification.DEFAULT_VIBRATE;
and
notification.defaults = Notification.DEFAULT_ALL;
requires the vibrate permission
<uses-permission android:name="android.permission.VIBRATE" ></uses-permission>
But sometimes I read that it doesn't.
Which one is the correct information?
Notification.DEFAULT_VIBRATE
with no problems on all devices until I added permissions for push notifications support. As soon as I added that, I was getting crashes because I did not include theVIBRATE
permission on devices pre 4.2 (so only 4.0.X - 4.1.X). – Luvenialuwana