@imatis/react-native-notifications 4.3.3-imatis.5 → 4.3.3-imatis.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -239,11 +239,10 @@ public class PushNotification implements IPushNotification {
|
|
|
239
239
|
|
|
240
240
|
Vibrator v = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE);
|
|
241
241
|
// Vibrate with wave form
|
|
242
|
-
long[] timings = new long[]
|
|
243
|
-
int
|
|
244
|
-
int repeatIndex = -1; // Do not repeat.
|
|
242
|
+
long[] timings = new long[]{0, 1000, 500, 1000};
|
|
243
|
+
int amplitude = VibrationEffect.DEFAULT_AMPLITUDE;
|
|
245
244
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
|
246
|
-
v.vibrate(VibrationEffect.createWaveform(timings,
|
|
245
|
+
v.vibrate(VibrationEffect.createWaveform(timings, amplitude));
|
|
247
246
|
} else {
|
|
248
247
|
//deprecated in API 26
|
|
249
248
|
v.vibrate(3000);
|
package/package.json
CHANGED