Comments (7)
Hello @kamekaioken ,
You can check the ionic sample app here. Hope this helps.
CometChat Pro,
Mayur Bhandari
from chat-sdk-ionic.
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.
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.
@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.
@mayur-bhandari Thank you, I had only eyes for the master branch which is missing the calling feature 😄
from chat-sdk-ionic.
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.
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)
- When we login after logout in ionic app, some time this error comes. HOT 1
- Thumbnail are not being generated in ionic HOT 1
- Failed to execute ‘send’ on ‘WebSocket’: Still in CONNECTING state. HOT 1
- Unable to unset group details while updating a group. HOT 1
- Property 'createUser' does not exist on type 'typeof CometChat'. HOT 2
- Tap on Push Notification doesn't open up the app HOT 2
- Closing App during ongoing call is not closing the Call Screen for other participant HOT 4
- Swiping down (closing) the ongoing call screen does not end the call but the screen is gone forever HOT 4
- ionic-calls Plugin requires Access to Calendar on iOS. App Store rejects App because of "Missing Purpose String in Info.plist" HOT 3
- The remoteData object receives with a null notification for chat messages HOT 4
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 chat-sdk-ionic.