Hi
Merely after advise here, not how to code it
If you wanted to add private messaging between users in your AppGameKit app (users across the world, not on the same local network) how would you store the messages? I know that the messages will need to be stored in an online database but when a new message is added to the database, and the recipient opens the app after receiving a push notification would you download the new message and store in a file on the recipients device? There might be multiple text files on the device, one for each chat history between two users.
If not a text file option how and where would you save the chat log other than the online database? I could download all messages everytime the chat window is opened and not save it on the device at all but those URL GET/POST lines could get really long and the loading of messages might slow down a bit.
I'm not after a WhatsApp type encrypted messaging service, just a simple messaging system like you'd find on most forums, and for it to go through HTTPS. It could look and feel like a chat program like WhatsApp or Messenger or it could look/feel and act more like an email app or forum private messaging. I'm not too fussed. Just want something simple.
If each chatlog was saved in a text file do you think something like this would be adequate to loop through each time the user opens the chat window
03/02/2018 12:59:34 (You): Hi, how are you doing?
03/02/2018 13:01:12 (Partner): Yeah good thanks, you?
03/02/2018 13:02:25 (You): Yeah not bad!
... and so on.
If users share private details between each other then that information would be stored openly in these text files. Would you encrypt all messages in the text file? If so what would be the best/quickest method?
Thanks
Kevin