Code Monkey home page Code Monkey logo

ios-sdk-swift-demo's Introduction

Voximplant Swift Demos

The demo demonstrates basic audio call functionality of the Voximplant iOS SDK.

The demo demonstrates CallKit integration with basic audio call functionality of the Voximplant iOS SDK .

Apple has changed the workflow for VoIP push notifications handling in iOS 13. AudioCallKit demo application is implemented to meet new requirements. Please use it to test push notification on iOS 13.

The demo demonstrates basic video call functionality of the Voximplant iOS SDK.

The demo demonstrates CallKit integration with basic video call functionality of the Voximplant iOS SDK .

Apple has changed the workflow for VoIP push notifications handling in iOS 13. VideoCallKit demo application is implemented to meet new requirements. Please use it to test push notification on iOS 13.

The demo demonstrates basic screen sharing functionality of the Voximplant iOS SDK.

The demo demonstrates basic in-app screen sharing functionality of the Voximplant iOS SDK.

The demo demonstrates conference call functionality of the Voximplant iOS SDK.

The demo demonstrates messaging functionality of the Voximplant iOS SDK.

License

In these demos sound resources are used whose authors are:

Have a question

ios-sdk-swift-demo's People

Contributors

niveuseverto avatar vladimirbrejcha avatar yesvladess avatar yoklmnprst avatar yuliagrigorieva avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-sdk-swift-demo's Issues

VoxImplant doesn't link for arm64 simulator builds when integrated with CocoaPods

Problem

In our project we depend on VoxImplantSDK through CocoaPods. However, it seems that the version released with CocoaPods doesn't allow linking for arm64 simulator. This is a problem for us, because some profiling features such as os_signpost and os_log don't work for translated binaries in Xcode 13.0.

How to reproduce

  1. Use arm64 macOS machine
  2. Create an empty project with a Podfile and override EXCLUDED_ARCHS to be empty
  3. Add VoxImplant with pod 'VoxImplantSDK' and pod 'VoxImplantWebRTC'
  4. Build for iOS 15 simulator using Xcode 13.0

The expected behavior is that VoxImplantSDK compiles and links successfully for arm64 simulator build.

The actual behavior is that VoxImplantSDK fails to compile with no such module 'VoxImplantSDK'.

Potential solution

I believe supporting .xcframework for VoxImplantSDK in CocoaPods should be possible.

To validate, I tried downloading .xcframeworks from SPM distribution and modified the .xcframeworks as follows:

  • Renamed VoximplantSDK.xcframework to VoxImplantSDK.xcframework
  • Renamed VoximplantWebRTC.xcframework to WebRTC.xcframework

then I modified the .podspec.json files as follows:

  • Removed EXCLUDED_ARCHS from both declarations
  • Replaced vendored_frameworks with VoxImplantSDK.xcframework and WebRTC.xcframework in their respective declarations

I served the updated zip files through local http server, pointed CocoaPods to the updated .podspec.json files and both arm64 and x86_64 simulator builds were successful.

Receive headers in didConnectWithHeaders

Hello,
I need to receive headers in didConnectWithHeaders func from VICallDelegate to be able to use image for example from the headers in the app but headers dictionary is always empty.

Also I can receive headers in didReceiveIncomingCall func from VIClientCallManagerDelegate

Any help in this?
Thanks

Disconnected whenever app goes in background state also what is gateway as I didn't find any.

The app gets disconnected and below error comes

2018-12-01 17:57:51.308025+0530 WizCounsel[6813:1579927] #VI/I [main-threa]:VIClient[LoggedIn] > disconnect 2018-12-01 17:57:51.309149+0530 WizCounsel[6813:1579973] #VI/I [sm ]:VIAuthenticator[LoggedIn] > disconnect 2018-12-01 17:57:51.309468+0530 WizCounsel[6813:1579927] #VI/I [sm ]:VIAuthenticator[LoggedIn] > webSocketDidCloseWithError: (null) 2018-12-01 17:57:51.310922+0530 WizCounsel[6813:1579750] #VI/I [main-threa]:VIClient[Disconnected] > required method -clientSessionDidDisconnect: called on <WizCounsel.VoxController: 0x129e27fa0> 2018-12-01 17:57:51.311622+0530 WizCounsel[6813:1579927] #SD/I [main-threa] Disconnected! 2018-12-01 17:57:51.312823+0530 WizCounsel[6813:1579927] #SD/D [main-threa] voxDidLoggedOut called on <WizCounsel.MainViewController: 0x12a1adc00> 2018-12-01 17:57:51.403886+0530 WizCounsel[6813:1579614] [Snapshotting] Snapshotting a view (0x12a918600, UIKeyboardImpl) that is not in a visible window requires afterScreenUpdates:YES.

ScreenSharing target crash issue

UI calling from background thread.
This patch can solve the problem
uiFromBackgroundThread.diff.zip

Backtrace:
Main Thread Checker: UI API called on a background thread: -[UIViewController presentingViewController]
PID: 9551, TID: 247980, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0
Backtrace:
4 ScreenSharing 0x0000000105f32f89 $s13ScreenSharing26IncomingCallViewControllerC11viewDidLoadyyFyycfU0_ys5Error_pSgcfU_ + 713
5 ScreenSharing 0x0000000105f4cb73 $s13ScreenSharing17PermissionsHelperC013requestRecordC014includingVideo10completionySb_ys5Error_pSgctFZySbcfU_ySbcfU_ + 227
6 ScreenSharing 0x0000000105f4cdba $sSbIegy_SbIeyBy_TR + 58
7 TCC 0x00007fff46bf1fe3 __TCCAccessRequest_block_invoke.126 + 337
8 TCC 0x00007fff46bf5dd1 __tccd_send_message_block_invoke + 231
9 libxpc.dylib 0x00007fff51c4f8f7 _xpc_connection_reply_callout + 36
10 libxpc.dylib 0x00007fff51c44b4f _xpc_connection_call_reply_async + 69
11 libdispatch.dylib 0x00000001075bbef8 _dispatch_client_callout3 + 8
12 libdispatch.dylib 0x00000001075d720a _dispatch_mach_msg_async_reply_invoke + 444
13 libdispatch.dylib 0x00000001075ce336 dispatch_kevent_worker_thread + 1589
14 libsystem_pthread.dylib 0x00007fff51c08a85 pthread_wqthread + 362
15 libsystem_pthread.dylib 0x00007fff51c07b77 start_wqthread + 15
2020-06-05 19:09:34.089563+0300 ScreenSharing[9551:247980] [reports] Main Thread Checker: UI API called on a background thread: -[UIViewController presentingViewController]
PID: 9551, TID: 247980, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0
Backtrace:
4 ScreenSharing 0x0000000105f32f89 $s13ScreenSharing26IncomingCallViewControllerC11viewDidLoadyyFyycfU0_ys5Error_pSgcfU
+ 713
5 ScreenSharing 0x0000000105f4cb73 $s13ScreenSharing17PermissionsHelperC013requestRecordC014includingVideo10completionySb_ys5Error_pSgctFZySbcfU_ySbcfU
+ 227
6 ScreenSharing 0x0000000105f4cdba $sSbIegy_SbIeyBy_TR + 58
7 TCC 0x00007fff46bf1fe3 __TCCAccessRequest_block_invoke.126 + 337
8 TCC 0x00007fff46bf5dd1 __tccd_send_message_block_invoke + 231
9 libxpc.dylib 0x00007fff51c4f8f7 _xpc_connection_reply_callout + 36
10 libxpc.dylib 0x00007fff51c44b4f _xpc_connection_call_reply_async + 69
11 libdispatch.dylib 0x00000001075bbef8 _dispatch_client_callout3 + 8
12 libdispatch.dylib 0x00000001075d720a _dispatch_mach_msg_async_reply_invoke + 444
13 libdispatch.dylib 0x00000001075ce336 _dispatch_kevent_worker_thread + 1589
14 libsystem_pthread.dylib 0x00007fff51c08a85 _pthread_wqthread + 362
15 libsystem_pthread.dylib 0x00007fff51c07b77 start_wqthread + 15

Main Thread Checker: UI API called on a background thread: -[UIViewController dismissViewControllerAnimated:completion:]
PID: 9551, TID: 247980, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0
Backtrace:
4 ScreenSharing 0x0000000105f330b8 $s13ScreenSharing26IncomingCallViewControllerC11viewDidLoadyyFyycfU0_ys5Error_pSgcfU_ + 1016
5 ScreenSharing 0x0000000105f4cb73 $s13ScreenSharing17PermissionsHelperC013requestRecordC014includingVideo10completionySb_ys5Error_pSgctFZySbcfU_ySbcfU_ + 227
6 ScreenSharing 0x0000000105f4cdba $sSbIegy_SbIeyBy_TR + 58
7 TCC 0x00007fff46bf1fe3 __TCCAccessRequest_block_invoke.126 + 337
8 TCC 0x00007fff46bf5dd1 __tccd_send_message_block_invoke + 231
9 libxpc.dylib 0x00007fff51c4f8f7 _xpc_connection_reply_callout + 36
10 libxpc.dylib 0x00007fff51c44b4f _xpc_connection_call_reply_async + 69
11 libdispatch.dylib 0x00000001075bbef8 _dispatch_client_callout3 + 8
12 libdispatch.dylib 0x00000001075d720a _dispatch_mach_msg_async_reply_invoke + 444
13 libdispatch.dylib 0x00000001075ce336 dispatch_kevent_worker_thread + 1589
14 libsystem_pthread.dylib 0x00007fff51c08a85 pthread_wqthread + 362
15 libsystem_pthread.dylib 0x00007fff51c07b77 start_wqthread + 15
2020-06-05 19:09:34.389622+0300 ScreenSharing[9551:247980] [reports] Main Thread Checker: UI API called on a background thread: -[UIViewController dismissViewControllerAnimated:completion:]
PID: 9551, TID: 247980, Thread name: (none), Queue name: com.apple.root.default-qos, QoS: 0
Backtrace:
4 ScreenSharing 0x0000000105f330b8 $s13ScreenSharing26IncomingCallViewControllerC11viewDidLoadyyFyycfU0_ys5Error_pSgcfU
+ 1016
5 ScreenSharing 0x0000000105f4cb73 $s13ScreenSharing17PermissionsHelperC013requestRecordC014includingVideo10completionySb_ys5Error_pSgctFZySbcfU_ySbcfU
+ 227
6 ScreenSharing 0x0000000105f4cdba $sSbIegy_SbIeyBy_TR + 58
7 TCC 0x00007fff46bf1fe3 __TCCAccessRequest_block_invoke.126 + 337
8 TCC 0x00007fff46bf5dd1 __tccd_send_message_block_invoke + 231
9 libxpc.dylib 0x00007fff51c4f8f7 _xpc_connection_reply_callout + 36
10 libxpc.dylib 0x00007fff51c44b4f _xpc_connection_call_reply_async + 69
11 libdispatch.dylib 0x00000001075bbef8 _dispatch_client_callout3 + 8
12 libdispatch.dylib 0x00000001075d720a _dispatch_mach_msg_async_reply_invoke + 444
13 libdispatch.dylib 0x00000001075ce336 _dispatch_kevent_worker_thread + 1589
14 libsystem_pthread.dylib 0x00007fff51c08a85 _pthread_wqthread + 362
15 libsystem_pthread.dylib 0x00007fff51c07b77 start_wqthread + 15
2020-06-05 19:09:34.446873+0300 ScreenSharing[9551:247980] [Assert] Cannot be called with asCopy = NO on non-main thread.
2020-06-05 19:09:34.447150+0300 ScreenSharing[9551:247980] [Assert] Cannot be called with asCopy = NO on non-main thread.
2020-06-05 19:09:34.447560+0300 ScreenSharing[9551:247980] [Assert] Cannot be called with asCopy = NO on non-main thread.
2020-06-05 19:09:34.447884+0300 ScreenSharing[9551:247980] [Assert] Cannot be called with asCopy = NO on non-main thread.
2020-06-05 19:09:34.448140+0300 ScreenSharing[9551:247980] [Assert] Cannot be called with asCopy = NO on non-main thread.
2020-06-05 19:09:34.448355+0300 ScreenSharing[9551:247980] [Assert] Cannot be called with asCopy = NO on non-main thread.
2020-06-05 19:09:34.448723+0300 ScreenSharing[9551:247980] *** Assertion failure in -[FBSSerialQueue assertOnQueue], /Library/Caches/com.apple.xbs/Sources/FrontBoardServices_Sim/FrontBoard-626.8/FrontBoardServices/FBSSerialQueue.m:98
2020-06-05 19:09:34.462710+0300 ScreenSharing[9551:247980] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'threading violation: expected the main thread'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff23e3cf0e __exceptionPreprocess + 350
1 libobjc.A.dylib 0x00007fff50ba89b2 objc_exception_throw + 48
2 CoreFoundation 0x00007fff23e3cc88 +[NSException raise:format:arguments:] + 88
3 Foundation 0x00007fff258b8bd2 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191
4 FrontBoardServices 0x00007fff36cf7d36 -[FBSSerialQueue assertOnQueue] + 236
5 FrontBoardServices 0x00007fff36cab2e5 -[FBSSceneImpl updateClientSettings:withTransitionContext:] + 70
6 FrontBoardServices 0x00007fff36cab52f -[FBSSceneImpl updateClientSettingsWithTransitionBlock:] + 153
7 FrontBoardServices 0x00007fff36cab455 -[FBSSceneImpl updateClientSettingsWithBlock:] + 110
8 UIKitCore 0x00007fff487b41b2 -[FBSScene(UIApp) updateUIClientSettingsWithBlock:] + 160
9 UIKitCore 0x00007fff4839d522 -[_UISystemAppearanceManager updateScreenEdgesDeferringSystemGestures] + 374
10 UIKitCore 0x00007fff48600672 __70-[UIViewController setNeedsUpdateOfScreenEdgesDeferringSystemGestures]_block_invoke_2 + 118
11 UIKitCore 0x00007fff485dec48 -[UIViewController _updateSystemAppearanceWithRecursionBlock:action:] + 295
12 UIKitCore 0x00007fff485deb72 -[UIViewController _updateSystemAppearanceWithRecursionBlock:action:] + 81
13 UIKitCore 0x00007fff486002b9 -[UIViewController _setPresentedStatusBarViewController:] + 220
14 UIKitCore 0x00007fff485f61f5 -[UIViewController _dismissViewControllerWithAnimationController:interactionController:completion:] + 675
15 UIKitCore 0x00007fff485f5d5a -[UIViewController dismissViewControllerWithTransition:from:completion:] + 662
16 UIKitCore 0x00007fff485f54fb -[UIViewController dismissViewControllerWithTransition:completion:] + 1256
17 UIKitCore 0x00007fff485f52a2 -[UIViewController dismissViewControllerWithTransition:completion:] + 655
18 UIKitCore 0x00007fff485f4f37 -[UIViewController performCoordinatedPresentOrDismiss:animated:] + 511
19 UIKitCore 0x00007fff485f7811 -[UIViewController dismissViewControllerAnimated:completion:] + 135
20 ScreenSharing 0x0000000105f330b8 $s13ScreenSharing26IncomingCallViewControllerC11viewDidLoadyyFyycfU0_ys5Error_pSgcfU
+ 1016
21 ScreenSharing 0x0000000105f4cb73 $s13ScreenSharing17PermissionsHelperC013requestRecordC014includingVideo10completionySb_ys5Error_pSgctFZySbcfU_ySbcfU
+ 227
22 ScreenSharing 0x0000000105f4cdba $sSbIegy_SbIeyBy_TR + 58
23 TCC 0x00007fff46bf1fe3 __TCCAccessRequest_block_invoke.126 + 337
24 TCC 0x00007fff46bf5dd1 __tccd_send_message_block_invoke + 231
25 libxpc.dylib 0x00007fff51c4f8f7 _xpc_connection_reply_callout + 36
26 libxpc.dylib 0x00007fff51c44b4f _xpc_connection_call_reply_async + 69
27 libdispatch.dylib 0x00000001075bbef8 _dispatch_client_callout3 + 8
28 libdispatch.dylib 0x00000001075d720a _dispatch_mach_msg_async_reply_invoke + 444
29 libdispatch.dylib 0x00000001075ce336 _dispatch_kevent_worker_thread + 1589
30 libsystem_pthread.dylib 0x00007fff51c08a85 _pthread_wqthread + 362
31 libsystem_pthread.dylib 0x00007fff51c07b77 start_wqthread + 15
)
libc++abi.dylib: terminating with uncaught exception of type NSException
/Users/a17674005/Library/Developer/Xcode/DerivedData/Swift-eidfaosvnqznblgtsappcsmuhhzs/Build/Products/Debug-iphonesimulator/ScreenSharing.app/ScreenSharing: Cannot load Swift type information; AST validation error in "ScreenSharing": The module file format is too old to be used by this version of the debugger.
(Recorded stack frame)

CallKit not open

Hello,

App in background not open call kit. but in foreground working in fine. pls helped me to fix this out.

2018-09-13 10:29:53.597817 VoximplantSwiftDemo[371:38435] #VI/I [main-threa]:[LoggedIn, 4] > disconnect
2018-09-13 10:29:53.833769 VoximplantSwiftDemo[371:38503] #VI/I [sm ]:[LoggedIn, 4] > pingSendCancel
2018-09-13 10:29:53.835146 VoximplantSwiftDemo[371:38533] #VI/I [sm ]:[LoggedIn, 4] > <=== webSocketDidCloseWithCode 1001 reason=Stream end encountered wasClean=false
2018-09-13 10:29:53.835563 VoximplantSwiftDemo[371:38534] #VI/I [sm ]:[LoggedIn, 4] > --> [Disconnected, 4]
2018-09-13 10:29:53.888974 VoximplantSwiftDemo[371:38377] Cannot snapshot view (<UIKeyboardImpl: 0x15fd3b440; frame = (0 0; 768 313); layer = <CALayer: 0x174036480>>) with afterScreenUpdates:NO, because the view is not in a window. Use afterScreenUpdates:YES.

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.