@imatis/react-native-notifications 4.3.3-imatis.6 → 4.3.3-imatis.7
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.
|
@@ -230,12 +230,13 @@ public class PushNotification implements IPushNotification {
|
|
|
230
230
|
mMediaPlayer.setAudioStreamType(AudioManager.STREAM_ALARM);
|
|
231
231
|
|
|
232
232
|
mMediaPlayer.prepare();
|
|
233
|
-
mMediaPlayer.
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
mMediaPlayer.
|
|
233
|
+
mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {
|
|
234
|
+
@Override
|
|
235
|
+
public void onCompletion(MediaPlayer mp) {
|
|
236
|
+
mMediaPlayer.release(); // Release resources when playback completes
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
|
+
mMediaPlayer.start(); // Start playback immediately after preparing
|
|
239
240
|
|
|
240
241
|
Vibrator v = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE);
|
|
241
242
|
// Vibrate with wave form
|
package/package.json
CHANGED