@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[] { 50, 50, 50, 50, 50, 100, 350, 25, 25, 25, 25, 200 };
243
- int[] amplitudes = new int[] { 33, 51, 75, 113, 170, 255, 0, 38, 62, 100, 160, 255 };
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, amplitudes, repeatIndex));
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imatis/react-native-notifications",
3
- "version": "4.3.3-imatis.5",
3
+ "version": "4.3.3-imatis.6",
4
4
  "description": "Advanced Push Notifications (Silent, interactive notifications) for iOS & Android",
5
5
  "license": "MIT",
6
6
  "keywords": [