Skip to content

Issue 1688 pr 5660 fix background death#5957

Open
rapterjet2004 wants to merge 1 commit intomasterfrom
issue-1688-pr-5660-fix-background-death
Open

Issue 1688 pr 5660 fix background death#5957
rapterjet2004 wants to merge 1 commit intomasterfrom
issue-1688-pr-5660-fix-background-death

Conversation

@rapterjet2004
Copy link
Contributor

@rapterjet2004 rapterjet2004 commented Mar 12, 2026

Continuing the implementation

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

@rapterjet2004 rapterjet2004 self-assigned this Mar 12, 2026
@rapterjet2004 rapterjet2004 added 3. to review Waiting for reviews 2. developing Work in progress and removed 3. to review Waiting for reviews labels Mar 12, 2026
…round, with notification controls for managing the call

- Add CallForegroundService with persistent notification
- Support calls in background without requiring picture-in-picture mode
- Add "Return to call" and "End call" action buttons to CallForegroundService notification with corresponding PendingIntent
- Handle proper foreground service types for microphone/camera permissions
- Add notification permission and fallback messaging.
- Add EndCallReceiver to handle end call broadcasts from notification action
- Use existing ic_baseline_close_24 drawable for end call action icon
- Register broadcast receiver in CallActivity to handle end call requests from notification using ReceiverFlag.NotExported for Android 14+ compatibility
- Add proper cleanup flow: notification action → EndCallReceiver → CallActivity → proper hangup sequence
- Track intentional call leaving to prevent unwanted service restarts
- Release proximity sensor lock properly during notification-triggered hangup
- Add diagnostic logging throughout the end call flow for debugging

Signed-off-by: Tarek Loubani <tarek@tarek.org>

- refactoring
- linter

Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
@rapterjet2004 rapterjet2004 force-pushed the issue-1688-pr-5660-fix-background-death branch from 4d4cdd8 to e05fef2 Compare March 13, 2026 13:22
@github-actions
Copy link
Contributor

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/5957.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

continue call when minimizing app and PIP is not available/enabled

1 participant