Preliminary investigation:
(Already experienced users of ServiceStack for building cloud REST services, now moving on to developing mobile devices. Newbies to android development)
What supported/recommended approaches are there (with ServiceStack) for communicating with a running Android app on a remote/mobile android device?
(I.e. Calling an android device from a cloud service)
We need to instruct the app to do something (in as close-to realtime as possible, latency under 2-3 secs is acceptable).
Would prefer to host a ServiceStack REST service within the Android app if possible, but perhaps other options/constraints I am not aware of.
Can use Xamarin as an option.
Ok, so lets say i go with serverevents, and say i want to reuse funq as our IOC container, can you show me how to setup the ioc for the xamarin client the recommended way?
Is it just the same way as for building a ss service? AppHost.Init() etc? Or is it different in some way for a xamarin servicestack
client?
Funq is embedded in ServiceStack, it’s not available as an external dependency and I wouldn’t reference the the server ServiceStack.dll in mobile apps.
Personally I’d avoid using any IOC’s in mobile apps, but this page lists some popular IOC’s that work with Xamarin: