Giter Site home page Giter Site logo

Ionic Capacitor Call Plugin produces 'CocoaPods could not find compatible versions for pod "CometChatCalls"' on iOS target build about chat-sdk-ionic HOT 7 CLOSED

kamekaioken avatar kamekaioken commented on May 25, 2024
Ionic Capacitor Call Plugin produces 'CocoaPods could not find compatible versions for pod "CometChatCalls"' on iOS target build

from chat-sdk-ionic.

Comments (7)

mayur-bhandari avatar mayur-bhandari commented on May 25, 2024 1

Hello @kamekaioken ,

You can check the ionic sample app here. Hope this helps.

CometChat Pro,
Mayur Bhandari

from chat-sdk-ionic.

mayur-bhandari avatar mayur-bhandari commented on May 25, 2024 1

Hello @kamekaioken,

Please update the Chat & Calling SDK to the latest version. The latest version of CometChat Cordova Ionic SDK(@cometchat-pro/cordova-ionic-chat) is v2.3.1 & the latest version of CometChat Ionic Calls(@cometchat-pro/ionic-calls) is v2.0.2.

Also, you need to update the maven URL in the project level build gradle file from "https://dl.bintray.com/cometchat/pro" to "https://dl.cloudsmith.io/public/cometchat/cometchat-pro-android/maven/".

from chat-sdk-ionic.

mayur-bhandari avatar mayur-bhandari commented on May 25, 2024

Hello @kamekaioken,

Can you please try using @comet-pro/ionic-calls v0.0.8 and check if everything is working fine. I will get this checked and update you once I have some details on the same.

CometChat Pro,
Mayur Bhandari

from chat-sdk-ionic.

kamekaioken avatar kamekaioken commented on May 25, 2024

@mayur-bhandari thank you for the quick response.

ionic cap sync ios is working for v0.0.8

But when trying to build and run the iOS App in Xcode I receive the error: Compiling for iOS 11.0, but module 'Capacitor' has a minimum deployment target of iOS 12.0 coming from the CometChat Pods. I manually changed their target build to iOS 12.0 since my target build is iOS 12.

But still I couldn't manage to actually perform audio and video call. Is there any sample code which shows how to integrate audio and video calling in an ionic app? I mean not only a setup like explained here but further more a code sample like the Comet Chat Angular UI kit which includes audio and video calling. I tried using this code base, but unfortunately it doesn't seem to work with capacitor. After accepting a call in an iOS app the following error is thrown (the javascript error seems to be thrown because of the Swift/Ojective-C errors relative to a webkit bug using audio or video tags in HTML):

[assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing}>
2021-03-12 11:31:05.643230+0100 App[4878:91546] [ProcessSuspension] 0x114d68240 - ProcessAssertion: Failed to acquire RBS MediaPlayback assertion 'WebKit Media Playback' for process with PID 4899, error: Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing}
2021-03-12 11:31:05.644015+0100 App[4878:91546] [assertion] Error acquiring assertion: <Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing}>
2021-03-12 11:31:05.644100+0100 App[4878:91546] [ProcessSuspension] 0x114d68270 - ProcessAssertion: Failed to acquire RBS MediaPlayback assertion 'WebKit Media Playback' for process with PID 4878, error: Error Domain=RBSAssertionErrorDomain Code=3 "Required client entitlement is missing" UserInfo={RBSAssertionAttribute=<RBSDomainAttribute| domain:"com.apple.webkit" name:"MediaPlayback" sourceEnvironment:"(null)">, NSLocalizedFailureReason=Required client entitlement is missing}
⚡️  [error] - ERROR Error: Uncaught (in promise): TypeError: undefined is not an object (evaluating 'X.startCall')

For now I can live with version 0.0.8 and manually changing the target build to 12 (if you can confirm that this should work without any problem). But my question now is: how to perform a working call inside an ionic app in the example of iOS? Sorry if this doesn't belong to this issue tracker.

from chat-sdk-ionic.

kamekaioken avatar kamekaioken commented on May 25, 2024

@mayur-bhandari Thank you, I had only eyes for the master branch which is missing the calling feature 😄

from chat-sdk-ionic.

kamekaioken avatar kamekaioken commented on May 25, 2024

Unfortunately CometChat.startCall(callSettings); is behaving odd in my App. I can see in the logs that the call is started and both parties can join the call, but no call screen is shown to me.
In your Sample App it seems to work, after accepting a call in the calling-screen and both clients calling startCall() the expected call screen is displayed. Copying almost everything from your sample App into my App which is running on Capacitor 3, Ionic 5 and Angular 10 shows no active phone call screen.

I also downgradet to

"@cometchat-pro/cordova-ionic-chat": "2.1.1",
"@cometchat-pro/ionic-calls": "0.0.6"

just like in your sample App since v.0.0.8 still threw the error mentioned here.

Now with v.0.0.6 the js-error is not thrown any more and it seems like the connection is stable, but the CometChat frontend library is not showing anything, instead you're returned to the chat-view (the calling screen is closed) which is expected routing behavior, but the active call screen / modal is missing. No error messages. And also the client is not asked for microphone access permission since no microphone will be turned on.

Is this an issue in combination with Capacitor 3 and iOS 12.0 build target?

from chat-sdk-ionic.

kamekaioken avatar kamekaioken commented on May 25, 2024

Any updates on this? Can you please confirm if this is a bug or a build settings issue?

from chat-sdk-ionic.

Related Issues (11)

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.