Has anyone created a Chatto PDF Message type?
I am developing an iOS healthcare related messaging app that, so far, has text and photo message types. I would like to add support for PDF (and/or other file kinds) message types.
The App is built using Chatto and Chatto Additions.
I have implemented 1-on-1 and Group Messaging with Text and Photo message types. The App also utilizes end-to-end encryption via Virgil Security's E3Kit.
I would like to be able to send and receive messages that contain PDF files. It would be great if other kinds of files could be exchanged as well.
I am looking for an implementation that can be adapted for my App.
You can just add your custom message type like photoCell. Define your bubble, message model, view model, presenter etc. There is no difference with other message types.
Thanks Pavel. I knew that I can probably use the Chatto Additions Photo message classes to develop a Files message classes. I would also need to develop file picker classes for selecting PDFs or other files for message content. I was hoping to avoid all of that if someone else has done it.
@101airborne there is no need to develop file picker. You can add a new input item for selecting files and use UIDocumentMenuViewController.
I used the PhotoMessageCell to present the files preview and just changed the action when tapping the cell to present/download/share the file
@101airborne there is no need to develop file picker. You can add a new input item for selecting files and use
UIDocumentMenuViewController. I used the PhotoMessageCell to present the files preview and just changed the action when tapping the cell to present/download/share the file
Thank you, OrChenOS. I will try your suggestion next week when I get back from vacation.
@101airborne there is no need to develop file picker. You can add a new input item for selecting files and use
UIDocumentMenuViewController. I used the PhotoMessageCell to present the files preview and just changed the action when tapping the cell to present/download/share the file
OrChenOS, I experimented with your suggestion to use UIDocumentMenuViewController for picking the files, and found that it works well despite the fact that UIDocumentMenuViewController is now deprecated. But, I am still having a problem integrating it into a new FilesChatInputItem. There is next to no guidance in the Chatto wikis on how to develop a new ChatInputItem and associated classes and protocols.. The existing examples PhotosChatInputItem and TextChatInputItem are so dissimilar that neither seems to be a useful guide to develop a FilesChatInputItem and the needed associated classes and protocols.
OrChenOS, have you by any chance pushed your version of a FilesChatInputItem and associated classes?