ConnectyCube / connectycube-flutter-call-kit

A Flutter plugin for displaying call screen when the app in the background or terminated.
https://developers.connectycube.com/flutter
Apache License 2.0
55 stars 75 forks source link

on android 12, 13 in headUp notification after clicking the accept button app is not Opening #111

Closed Ahmadgnoor closed 5 months ago

Ahmadgnoor commented 10 months ago

when notification appear i click the Accept button event trigger but app is not opening

TatankaConCube commented 10 months ago

you should provide permission to launch the app from the background first, please read the Android documentation on how to do this

Ahmadgnoor commented 10 months ago

i have treid So many way. Please help me to find the exect permission thanks in Advance

TatankaConCube commented 10 months ago

in our P2P sample, we use the next permission https://github.com/ConnectyCube/connectycube-flutter-samples/blob/master/p2p_call_sample/android/app/src/main/AndroidManifest.xml#L23

and here is the code for requesting this permission https://github.com/ConnectyCube/connectycube-flutter-samples/blob/master/p2p_call_sample/lib/src/select_opponents_screen.dart#L194

https://github.com/ConnectyCube/connectycube-flutter-samples/blob/master/p2p_call_sample/lib/src/utils/platform_utils.dart#L50

Ahmadgnoor commented 10 months ago

Thank you soo much

On Wed, Sep 20, 2023 at 8:23 PM TatankaConCube @.***> wrote:

in our P2P sample, we use the next permission https://github.com/ConnectyCube/connectycube-flutter-samples/blob/master/p2p_call_sample/android/app/src/main/AndroidManifest.xml#L23

and here is the code for requesting this permission https://github.com/ConnectyCube/connectycube-flutter-samples/blob/master/p2p_call_sample/lib/src/select_opponents_screen.dart#L194

https://github.com/ConnectyCube/connectycube-flutter-samples/blob/master/p2p_call_sample/lib/src/utils/platform_utils.dart#L50

— Reply to this email directly, view it on GitHub https://github.com/ConnectyCube/connectycube-flutter-call-kit/issues/111#issuecomment-1727946091, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLO2X7AWJIAM5YU3MZPTX3X3MC6NANCNFSM6AAAAAA5ACYHE4 . You are receiving this because you authored the thread.Message ID: @.*** com>

Mubashir-Saeed1 commented 9 months ago

Thank you soo much On Wed, Sep 20, 2023 at 8:23 PM TatankaConCube @.> wrote: in our P2P sample, we use the next permission https://github.com/ConnectyCube/connectycube-flutter-samples/blob/master/p2p_call_sample/android/app/src/main/AndroidManifest.xml#L23 and here is the code for requesting this permission https://github.com/ConnectyCube/connectycube-flutter-samples/blob/master/p2p_call_sample/lib/src/select_opponents_screen.dart#L194 https://github.com/ConnectyCube/connectycube-flutter-samples/blob/master/p2p_call_sample/lib/src/utils/platform_utils.dart#L50 — Reply to this email directly, view it on GitHub <#111 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLO2X7AWJIAM5YU3MZPTX3X3MC6NANCNFSM6AAAAAA5ACYHE4 . You are receiving this because you authored the thread.Message ID: @. com>

How did you manage to fix this because I'm unable to figure this out!!!

Ahmadgnoor commented 9 months ago

yup, just give the permission for notification

<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />

Permission Handler give this permission

Permission notificationPermission = Permission.notification;