sendbird

Integrating real-time messaging in android app

旧街凉风 提交于 2020-01-17 07:53:22
问题 I have been searching for a while as to what could be the best option to integrate real-time messaging in my app. I have read about a number of available chat APIs like Sinch, Applozic, Quickblox, SendBird, etc. What I am confused about is that since I am using Firebase Auth for user authentication, can I use these available API along with Firebase Auth??? I know I can even use Firebase to create IM feature but I would prefer to use third party IM APIs as it will save time. Note: I am using

Create file from drawable to send with sendbird

邮差的信 提交于 2019-12-25 07:16:41
问题 I want use sendFileMessage in sendbird api. It need file value and I want use this file from drawable (or assets ). sendBird API this is snipped code from sendbird Hashtable<String, Object> info = Helper.getFileInfo(getActivity(), uri); final String path = (String) info.get("path"); File file = new File(path); String name = file.getName(); String mime = (String) info.get("mime"); int size = (Integer) info.get("size"); sendFileMessage(file, name, mime, size, "", new BaseChannel