Comments (6)
In the current realization, you can't get the call data from the plugin. We will add it to some next releases. Now the main idea is to save the call state when the app killed, then after starting the app and receiving the new call, you can ask the plugin about its state. How it works you can check in our sample app.
from connectycube-flutter-call-kit.
@TatankaConCube Thanks for the response,
can you suggest me a way to get solution for the above stated points.
from connectycube-flutter-call-kit.
in my case, I use this solution for firebase background notifications:
Future<void> _firebaseMessagingBackgroundHandler(RemoteMessage message) async {
if (message.data['message'] == 'Calling end') {
endCall(callNotificationUuid);
} else if (message.data['message'] == 'Calling message') {
callNotificationUuid =
uuid;
await ConnectycubeFlutterCallKit.showCallNotification(
sessionId: callNotificationUuid,
callType: 0,
callerName: message.data['userName'],
callerId: 0,
opponentsIds: Set.of([0]),
);
}
await Firebase.initializeApp();
}
then u have to add this init to your top widget's initState()
initConnectycubeFlutterCallKit() async {
ConnectycubeFlutterCallKit.instance.init(
onCallAccepted: (
String sessionId,
int callType,
int callerId,
String callerName,
Set opponentsIds,
) async {
//TODO Narigator things
.setCallingInfo(sessionId.split(',').last, callerName);
return null;
},
onCallRejected: (String sessionId, int callType, int callerId,
String callerName, Set opponentsIds) {
return null;
},
);
}
from connectycube-flutter-call-kit.
@husen-hn ,
Thanks for the response,
Iam also using FCM and handled theses cases but failed to handle above 3 cases, It would be helpful if provided any suggestion on this
from connectycube-flutter-call-kit.
no activity for a long time, closing
from connectycube-flutter-call-kit.
i also use firebase background notifications:.. receiver while decline cannot hit any state. opponnent caller will have been in call state until, call session closed. can u give any suggestion
from connectycube-flutter-call-kit.
Related Issues (20)
- onCallRejectedWhenTerminated not called in lockscreen HOT 1
- when i click on notification it redirects to home screen not showing full screen intent call pickup screen HOT 8
- is there anyway to get incoming call event on iOS? HOT 1
- Error: ConnectycubeFlutterBgPerformingService HOT 2
- UI of Kit totaly different than Example HOT 4
- How to cancel incomming call on ios when app terminate sate. HOT 5
- How to launch app HOT 2
- Call notification is not showing HOT 1
- Video Call issue HOT 1
- Loop event when call action from Flutter on IOS HOT 1
- Timeout, callback HOT 3
- Has error not show imcomming call when voip comming in ios lockscreen HOT 27
- Accept button on incoming call not working in terminated state (Android / Flutter) HOT 2
- Firebase Cloud Messaging API (V1): Issue with _firebaseMessagingBackgroundHandler Incoming Call Ringtone sound Not Working HOT 1
- Crash when receiving apns voip push HOT 3
- Speaker button is not clickable. HOT 2
- incoming call notification is not appearing when a call is triggered. HOT 4
- Incoming Callkit notification not triggering when app is terminated HOT 4
- Incoming Callkit notification not triggering when app is terminated HOT 3
- iOS accepting call from lockscreen opens default call screen instead of app HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from connectycube-flutter-call-kit.