ccm-innovation / react-native-twilio-chat

React Native wrapper for the Twilio Programmable Chat iOS and Android SDKs
MIT License
38 stars 26 forks source link

NPM twilio-chat release 1.01 #28

Open svlaev opened 7 years ago

svlaev commented 7 years ago

Hello,

Today I received an email from Carl Olivier (Director of Product, Realtime Data Services at Twilio). They updated their JS SDK and now it supports React Native apps. Reference

I haven't tested it yet, just wanted to let you know.

benoist commented 7 years ago

I've just tried it, apart from manually adding some missing dependencies I can load messages and listen for updates. I see the JS library also supports push notifications via fcm. That was my main concern, but seems good.

svlaev commented 7 years ago

@benoist I have more info about the pushes.

One thing to note - push notification support in the JS lib is only part done - we have methods to register for push (APN/FCM) - but the routing on receipt is still in progress. We are currently looking at that, but native pushes will not work today I believe.

So it's a matter of time for them to fix the issue

benoist commented 7 years ago

I think it should work if you have the react-native-fcm setup correctly. The push notification then gets injected into the JS code via that library. I will test this later though, trying to get a decent layout first

digitaldavenyc commented 7 years ago

Is twilio-chat a replacement for react-native-twilio-chat?

joshhornby commented 7 years ago

@digitaldavenyc Did you ever get an answer to this question?

benoist commented 7 years ago

I've been developing with twilio-chat for a few months now and it works really well. Technically its not really a replacement as its developed by 2 different parties. Also this uses the native libraries from twilio, twilio-chat is JS only.

joshhornby commented 7 years ago

@benoist Thanks for the response, have you been using twilio-chat in a React Native app? If so did you use this package or the JS only version?

benoist commented 7 years ago

I'm using the JS only version in a react native app.

joshhornby commented 7 years ago

And performance is ok? I assume push notifications still work?

benoist commented 7 years ago

I'm still developing the rest of the app, so I haven't run into performance issues yet. Push notifications should work if you register the Firebase FCM token and setup Firebase notifications.

Kabangi commented 7 years ago

@benoist Any special things you had to do to make the JS sdk work, am getting an error which I have no idea how to overcome.

screen shot 2017-09-17 at 12 09 38 am