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
|
-
|
|
178
|
-
|
|
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
|
-
|
|
217
|
-
|
|
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
|
-
|
|
256
|
-
|
|
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
|
|