this is a fork of the project https://github.com/alongubkin/phonertc. I've just added a package.json to be compliant with cordova 7, and replaced the *.swift files to be compliant with Swift 3, according to suggestions proposed by the user @wolfmanwoking
ionic cordova plugin add https://github.com/De-Lac/phonertc.git
ionic cordova plugin remove com.dooble.phonertc
- probably, when compiling, you could have the SJProgressHUD object not recognized. Check if the file it's present in the folder of the installed plugin, otherwise manually add it. You can find this file on this repo, under
/src/ios/SJProgressHUD.swift
If it's still missing, add manually by XCode: open Xcode, open the project, find where are the other files .swift, right-click, add-file and manually paste the code - if ionic cordova build ios gives other errors, be sure to have updated your build ios version to be compiled with Swift 3. You can do it by
cordova platform update ios
- fix the headers in xcode:
- Go platforms/ios and click on [ProjectName].xcodeproj to open it with XCode
- Go to your project settings
- In
General
, changeDeployment Target
to 7.0 or above - Go to
Build Settings
and change:Objective-C Bridging Header
=>$(PROJECT_NAME)/Plugins/com.dooble.phonertc/Bridging-Header.h
Runpath Search Paths
=> $(inherited) @executable_path/Frameworks - Go to
Build Phases
and unfoldLink Binary With Libraries
Add libicucore.dylib
- Actually, I have still problems in compiling it with Ionic. Anyway, it's enough to have it succesfully compiled in Xcode, so at the end it works.
WebRTC for Cordova apps!
Important Note: Use GitHub issues only for bugs and feature requests! For any other questions, use the StackOverflow forum.
- Completely Open Source
- Android, iOS and Browser support
- Simple JavaScript API
- Video & Voice calls
- Group calls
- Renegotiation (Mute, Hold, etc)
Want to learn more? See the wiki.
Use the phonertc tag in StackOverflow for Q/A.