New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade to Swift 3 #221
Upgrade to Swift 3 #221
Conversation
@marcelgoya I'm getting the error below after merging your changes and trying to create a RTCPeerConnection. Any ideas? Seems simple like it's not exposing the plugin functions. However, I'm seeing the onReset write to the log. I'm sure I'm having a brain freeze but cannot for the life of me figure it out with Swift 3.
|
@stormbkk87 You're right. I'm getting the same error. No idea where this is coming from. |
I've been testing other cordova plugins that use audio and worked before I upgraded to Swift 3 and a few don't work anymore. So, looks like Swift 3 changes things. Apple is really annoying me lately. lol |
You're absolutely not alone! What really pisses me off is that it's impossible to compile Frameworks who run V3 and V2x all together. I mean, they have I dunno how many thousands of devs working for them and they can't even add some shitty compatibility mode?! |
I'm currently working on a cross platform app which uses WebRTC for the video chat feature and honestly, the amount of time I had wasted just to work around Apple's shit is seriously getting me to the point where I'm considering to stop supporting their platform because it requires such a vast amount of time to fix all their incompatibility problems and to create workarounds. I'm not saying that Android & co are much better, they have their problems too but the level of arrogance coming from Apple is really winding me up. |
Aha! Found it. The signature of the CDVPlugin methods are just a bit off so Cordova throws that error. Common cordova error I guess when Apple decides to do the evil signature change of functions. Argh. I haven't made audio work yet. But I'm getting candidates. @marcelgoya Let me know if audio works for you. Public cordova function signatures should look like this:
|
Confirmed audio works on device iPhone 6 iOS 10. Back in the saddle. By the way, whiskey works wonders when dealing with stupid Apple changes. :) Also, I'm using Meteor 1.4.2 for those having issues upgrading. |
@stormbkk87 Yup, works for me too |
btw, can i use this for Sinch SDK? Thanks |
When are you planning to merge the Swift 3 upgrade into the main branch? It's been almost a month now and I'd like to use the official branch rather than my own. |
Both @saghul and me have been busy in some conference events lately. |
@marcelgoya I'm back! Since I merged the getStats PR today this no longer applies cleanly. Can you please rebase it? Thanks! |
@saghul Sure, but I won't be able to do it before Friday. Cheers |
@marcelgoya No problem at all, thanks! |
@saghul I've just updated the PluginRTCPeerConnection file. I noticed a couple of things:
|
@saghul Any updates on this one? |
Holidays :) |
Yeah, me too now :) |
So, why did you close this? |
Hi, wanted to ask about the status on merging this into master and releasing next version to npm. |
It will be ready when it's ready, not sooner and not later. |
Please, don't disturb into the issue just to make us hurry up. |
I tried to use this PR, but the change is too invasive and didn't work, so I switched to using the syntax converter and fixing all errors. Did some light testing (GUM only) and things seem to work. Please see #263 |
No description provided.