-
Notifications
You must be signed in to change notification settings - Fork 152
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
Twilio Voice Android SDK 4 #130
Conversation
update build.gradle as per recommendations in RN 0.57.8 update gradle to v 3.2.1
Would be happy to review this when I get some time, hopefully next weekend |
Greatly appreciated! |
Code looks good! I think the comments should come out where you took out the getState calls. I'll get a chance to run it tomorrow or Sunday and let you know how that went |
I think the state got moved to another class (https://github.com/twilio/voice-quickstart-android/blob/master/Docs/migration-guide-2.x-3.x.md), and it would be ideal if we could figure out a way to keep the state information because I have an app that relies on it. |
I've been running this partly successful on our app for 2 months now. We do get this error every now and then though:
Anyone any idea how to fix this? |
@Pagebakers We tested this as well, but as we understood it (according to your commits), your changes were Android-only. Is this correct? |
Thanks for testing, this update is Android only indeed. There's another PR for the IOS update. |
Just to coordinate... |
@Pagebakers @fabriziomoscon Can the PRs be combined so it testable on both platforms in one go? |
I think the merging order should be: feat/v4, android SDK v4, and IoS |
@fabriziomoscon Merging #108 was pretty painless No issues running this on first sight. |
Thanks @Pagebakers you will need to rebase master to fix the above conflicts. I am testing now |
@Pagebakers I noticed that you merged half of my PR. Please check the full list here: https://github.com/hoxfon/react-native-twilio-programmable-voice/pull/108/commits |
Oh shit something went wrong then, I'll look into it tomorrow. |
@Pagebakers I pushed a branch here containing the latest master |
Getting a compilation error, but that may be due my bad internet connection. I'll need to try it again on wifi later. |
My compilation error was on voice.register() and using twilio 4.5.0 fixed it, what is yours? |
@fabriziomoscon I'm seeing this as well |
Getting a lot of cannot find symbol errors on the package in your branch unfortunately. Missing androidx classes. error: cannot find symbol class NonNull What React version have you been testing on? |
RN 0.60 |
OK I figured, tried to upgrade now getting the same voice.register error, twilio 4.5.0 doesn't seem to fix this though :( |
Running in too much compilation errors now because of the upgrade, don't have the time for this unfortunately. 0.59.9 was running fine Should become
|
@Pagebakers I know it is taking me more than 10 working days for me to upgrade to RN0.60, however it is a needed change for my app because of other libraries that have new features only for RN0.60. |
Surething, just go ahead releasing this for 0.60. I'll work it out once I find some more spare time. thanks! |
You can probably use jetifier to fix the compilation errors if it's looking for androidx stuff. RN 0.60 as well as Android have made some changes to the underlying support libraries. If you're not on RN 0.60 or above, try installing https://www.npmjs.com/package/jetifier and running |
Took me a couple more hours, but the solution is easy
Thanks @aniravi24 for getting me to the right direction :) Still getting an error though
|
I also have #142 on top of the work in feature/android-sdk-4. |
These changes have been included in #144 |
Upgraded to the new SDK
I'm not an Android developer, but need our apps to be updated, so here goes nothing :)
Basic functions seem to work.
Haven't implemented the new onRinging/onReconnecting/onReconnecting callbacks
callInvite.getState() is not available anymore, removed this where used, but not sure if this breaks anything.
Need testers! :)