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

QuickBlox calling notification using FlutterCallkitIncoming in background. #81

Open
shaikhTaha97 opened this issue Jun 12, 2024 · 4 comments

Comments

@shaikhTaha97
Copy link

shaikhTaha97 commented Jun 12, 2024

Steps happening when i tap answer action of call kit.
QB initialize
chat re-connect
my app modules init
add subscriptions to call manager.
after adding subscription i receive call after a delay of 2-3 seconds.
this whole process takes upto 5-seconds to get call.
is there any workaround?
when i try to accept call directly from my call manager, it doesn't have session.
I don't know whats wrong with it.
Please Help!

@vdovbnya-qb
Copy link
Member

vdovbnya-qb commented Jun 12, 2024

Hello @shaikhTaha97
Thank you for providing information.

You can change the dialing time interval. This parameter is for how often to notify your opponents of your call. Link to documentation.
By default, the opponent notification interval is 5 seconds. You can set the minimum value to 3 seconds.

An example of how to do this is below:

int interval = 3;

try {
  await QB.rtcConfig.setDialingTimeInterval(interval);
} on PlatformException catch (e) {
  // Some error occurred, look at the exception message for more details 
}

I hope this helps solve your issue.

Best regards,
Vitalii Dovbnia

@shaikhTaha97
Copy link
Author

Thank you for the response, it did help for some milliseconds, is there any proper handling using callkit? anywhere on the internet? using flutter sdk.
i really need this functionality to accept and reject call without opening app using callkit.
can you help me a bit?

@hiteshgarg123
Copy link
Member

Hello @shaikhTaha97

Unfortunately, this is currently not possible with our Flutter SDK. To accept or reject a call you need a session, for which you need to open the application and perform the necessary steps like initialising the SDK, and subscribing to the events.

We will look forward to making it more easy in the future.

Best regards,
Hitesh

@shaikhTaha97
Copy link
Author

Thank you for the swift response.

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

3 participants