Open sergek99 opened 8 years ago
Still having trouble building? Try my fork that includes the a newer, stripped PhoneRTC lib.
don't work TypeError: 'undefined' is not an object (evaluating 'SIP.Utils.Promise.resolve')
no sound
Oh, you're not getting sound because you're getting that error. You're probably running iOS 7 and on the iOS 7 (and older) webview, there's no Promise library included, which is required by SIP.js. You'll need override SIP.js to use an external Promise library. If you're using AngularJS/Ionic, "Q" is included so you can do this:
var SIP = cordova.require("com.onsip.cordova.Sipjs");
var PhoneRTCMediaHandler = cordova.require("com.onsip.cordova.SipjsMediaHandler")(SIP);
SIP.Utils.Promise = $q
Otherwise, check the updated README.
i don't build app in Xcode. Help me. Lib "libjingle_peerconnection_objc.a" build not use "bitcode"