voice-react-native-sdk 1.6.2-fork.23-hack → 1.6.2-fork.30

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.
@@ -174,10 +174,9 @@ class NotificationUtility {
174
174
  .addPerson(incomingCaller)
175
175
  .setStyle(NotificationCompat.CallStyle.forIncomingCall(
176
176
  incomingCaller, piRejectIntent, piAcceptIntent));
177
- // Do not set full screen intent for CallStyle notifications on Android 14+.
178
- // CallStyle.forIncomingCall() already provides the system call UI with answer/reject buttons
179
- // that work properly even when the phone is locked. Setting a full screen intent interferes
180
- // with the system call UI, preventing the answer/reject buttons from appearing.
177
+ if (isFullscreenIntentEnabled(context)) {
178
+ builder.setFullScreenIntent(piForegroundIntent, true);
179
+ }
181
180
  return builder.build();
182
181
  }
183
182
 
@@ -214,9 +213,9 @@ class NotificationUtility {
214
213
  .setOngoing(true)
215
214
  .addPerson(activeCaller)
216
215
  .setStyle(NotificationCompat.CallStyle.forOngoingCall(activeCaller, piEndCallIntent));
217
- // Do not set full screen intent for CallStyle notifications on Android 14+.
218
- // CallStyle.forOngoingCall() provides the system call UI that works properly even when the phone is locked.
219
- // Setting a full screen intent interferes with the system call UI.
216
+ if (isFullscreenIntentEnabled(context)) {
217
+ builder.setFullScreenIntent(piForegroundIntent, true);
218
+ }
220
219
  return builder.build();
221
220
  }
222
221
 
@@ -253,9 +252,9 @@ class NotificationUtility {
253
252
  .setOngoing(true)
254
253
  .addPerson(activeCaller)
255
254
  .setStyle(NotificationCompat.CallStyle.forOngoingCall(activeCaller, piEndCallIntent));
256
- // Do not set full screen intent for CallStyle notifications on Android 14+.
257
- // CallStyle.forOngoingCall() provides the system call UI that works properly even when the phone is locked.
258
- // Setting a full screen intent interferes with the system call UI.
255
+ if (isFullscreenIntentEnabled(context)) {
256
+ builder.setFullScreenIntent(piForegroundIntent, true);
257
+ }
259
258
  return builder.build();
260
259
  }
261
260
 
@@ -329,7 +329,8 @@ public class VoiceService extends Service {
329
329
  createOrReplaceNotification(callRecord.getNotificationId(), notification);
330
330
 
331
331
  // stop active sound (if any)
332
- VoiceApplicationProxy.getMediaPlayerManager().stop();
332
+ // 11-14-25: We can keep the sound playing to indicate that the call is still pending pickup.
333
+ //VoiceApplicationProxy.getMediaPlayerManager().stop();
333
334
 
334
335
  // notify JS layer
335
336
  sendJSEvent(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "voice-react-native-sdk",
3
- "version": "1.6.2-fork.23-hack",
3
+ "version": "1.6.2-fork.30",
4
4
  "description": "Twilio Voice React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",