Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App not opening, when app is in background state and accepting video call from notification #80

Open
2 tasks done
nikhil-raj248 opened this issue Nov 24, 2024 · 0 comments

Comments

@nikhil-raj248
Copy link

nikhil-raj248 commented Nov 24, 2024

Environment

Technology Version
Flutter version 3.24.3
Plugin version ^4.16.12
Android version 14
iOS version 17.6.1
macOS version
Xcode version
Google Chrome version

Device information:
Android - POCO X5 (model - 22111317PI)
iOS - iPhone 13 (model - MLPK3HN/A)

Description

I have removed all 3 permissions (camera, microphone, systemAlertWindow) in ZegoCallInvitationConfig when init. And handling camera and microphone permissions in onIncomingCallAcceptButtonPressed so that when call is accepted, it takes permission instead of during init of ZegoUIKitPrebuiltCallInvitationService, for better user experience.

Now After this video call works fine when App is kept in foreground or terminated state but when kept in Background state, and on accepting call from notification, App does't open by itself. Although if i explicitly open app, video call works fine but app should open by itself when call is accepted.

Also if i take systemAlertWindow permission initially, it will work fine (for android only). But i don't want to take permissions initially and how systemAlertWindow is affecting this behavious is not clear to me.

i have tried Native methods as well in onIncomingCallAcceptButtonPressed to bring app in foreground state but none of them worked.

Expected behavior:
when permission aren't taken initially and video call is accepted from notification when app is in background state, it should automatically come to foreground state.

Current behavior:

App is not coming to foreground state, when video call is accepted from notification and app is in background state.

Steps to reproduce

  1. Remove all permission taken intially (camera, microphone, systemAlertWindow) from ZegoCallInvitationConfig of config in init of ZegoUIKitPrebuiltCallInvitationService.
  2. Keep app in background state.
  3. Video call notification comes and accpeted.
  4. It not open app (bring to foreground state)

Screenshot 2024-11-24 141353
Screenshot 2024-11-24 141406

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant