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

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,9 +174,10 @@ class NotificationUtility {
174
174
  .addPerson(incomingCaller)
175
175
  .setStyle(NotificationCompat.CallStyle.forIncomingCall(
176
176
  incomingCaller, piRejectIntent, piAcceptIntent));
177
- if (isFullscreenIntentEnabled(context)) {
178
- builder.setFullScreenIntent(piForegroundIntent, true);
179
- }
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.
180
181
  return builder.build();
181
182
  }
182
183
 
@@ -213,9 +214,9 @@ class NotificationUtility {
213
214
  .setOngoing(true)
214
215
  .addPerson(activeCaller)
215
216
  .setStyle(NotificationCompat.CallStyle.forOngoingCall(activeCaller, piEndCallIntent));
216
- if (isFullscreenIntentEnabled(context)) {
217
- builder.setFullScreenIntent(piForegroundIntent, true);
218
- }
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.
219
220
  return builder.build();
220
221
  }
221
222
 
@@ -252,9 +253,9 @@ class NotificationUtility {
252
253
  .setOngoing(true)
253
254
  .addPerson(activeCaller)
254
255
  .setStyle(NotificationCompat.CallStyle.forOngoingCall(activeCaller, piEndCallIntent));
255
- if (isFullscreenIntentEnabled(context)) {
256
- builder.setFullScreenIntent(piForegroundIntent, true);
257
- }
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.
258
259
  return builder.build();
259
260
  }
260
261
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "voice-react-native-sdk",
3
- "version": "1.6.2-fork.22",
3
+ "version": "1.6.2-fork.23-hack",
4
4
  "description": "Twilio Voice React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",