Hey, This is just a decision-making problem. I am seeking for a well thought out answer.
I have to develop an android XMPP chat application, (the application also has a NodeJS server API, connecting to MongoDB and AWS S3 for picture uploads)
which will be better:
1. Having a "openfire" server on aws and connecting it to the android application and implementing an XMPP client on the android device using "smack" library.
2. Implementing a "xmpp-client" on NodeJS server side and scrape the results from this API to the Android device.