You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WEBRTC-2550: Prevent socket disconnection when minimized and fix notification handling (#460)
* WEBRTC-2550: Prevent socket disconnection when app is minimized during active call
* fix: disconnection on notification tap through onStop on MainActivity
* chore: bump androidx_core
* WEBRTC-2550: Implement CallNotification integration
- Created CallNotificationService using NotificationCompat.CallStyle API
- Created CallNotificationReceiver to handle notification actions
- Updated MyFirebaseMessagingService to use the new CallNotificationService
- Updated NotificationsService to support both legacy and modern notification styles
- Updated AndroidManifest.xml files to register the new receiver
* fix: import ComponentName and adjust notificationManager declaration
* chore: update manifest to allow for full screen intent (required for call permissions)
* WEBRTC-2550: Implement CallForegroundService to keep audio alive when minimized
* feat: use correct callerName and callerNumber and handle call cancellation better
* fix: catch better exceptions and remove magic number
* chore: add service type as phone call
* chore: add microphone permission
* WEBRTC-2550: Fix socket disconnects when minimized during active calls
- Added static flag in CallForegroundService to track if service is already running\n- Added method to check if service is running using both flag and system service check\n- Updated TelnyxViewModel to check if service is already running before starting it\n- Improved error handling in startForeground method to gracefully fall back to PHONE_CALL only if MICROPHONE permission fails\n- Added proper cleanup of service flag in onCreate, onStartCommand, and onDestroy
* feat: startCallService before the app goes into the background
* feat: catch specific exceptions and use singleTask to only open existing Activity
* feat: catch non generic exceptions
* WEBRTC-2550: Fix background activity launch blocked issue and make notification click accept call
* Revert "WEBRTC-2550: Fix background activity launch blocked issue and make notification click accept call"
This reverts commit 6875ade.
* chore: add requiresAPI calls and adjust manifest for XML app
* WEBRTC-2550: Fix background activity launch blocked issue and make notification click accept call
* Revert "WEBRTC-2550: Fix background activity launch blocked issue and make notification click accept call"
This reverts commit bf479af.
* feat: use pending intent with activities instead of notification receiver
* fix: rejection from push notification no longer starts call service
* chore: bump up wait time for tests for slow connections
* feat: more reliable form of call service start / stop (based on current call)
* fix: set _handling push to false whenever a call ends - even if it wasn't true before just in case
* fix: if device is locked, don't use full screen intent (as it attempts to launch activity)
* feat: stop service when disconnecting if one is running
* chore: clearer documentation on notification broadcast receiver usage
* fix: ignore local candidates during negotiation, use shared mediaConstraints and adjust changelog for 1.5.1 release
* fix: use IceTransportsType as NOHOST
* chore: remove duplicate import logger
---------
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: Oliver Zimmerman <oezimmerman@gmail.com>
0 commit comments