Giter Club home page Giter Club logo

Comments (6)

TatankaConCube avatar TatankaConCube commented on June 15, 2024

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.

aravindhkumar23 avatar aravindhkumar23 commented on June 15, 2024

@TatankaConCube Thanks for the response,

can you suggest me a way to get solution for the above stated points.

from connectycube-flutter-call-kit.

husen-hn avatar husen-hn commented on June 15, 2024

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.

aravindhkumar23 avatar aravindhkumar23 commented on June 15, 2024

@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.

TatankaConCube avatar TatankaConCube commented on June 15, 2024

no activity for a long time, closing

from connectycube-flutter-call-kit.

sivasankari-si avatar sivasankari-si commented on June 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.