We are developing a XMPP-based notification system, we have a server and several android devices and our OpenFire server acts as a communication gateway.
On the server side, there is a OSGi bundle, which is responsible to receive all the messages from the devices and map the corresponding action.
I want to avoid anonymous login, to have some control of who is sending messages to the server, but on the other hand I want the client to auto-signup when using our android-client.
So well, my first idea was either to listen to the AccountManager
and check any newly createad account and, if proceeds, add it to the server roster.
The second option is handling all the subscription requests, check whatever, and add it to the server roster in case. Obiously for the second option the client needs to request the subscription to the server, but it's easy to achieve.
I found a possible workaround for the second option here, but what option you guys think is the best?
Any other recommendation/suggestion besides these two is also welcome.