Tried another approach: # Core.Platform.iOS register using a ServiceFinder an instance of AuthService # When MobileCore.GetInstance is called, a check is done that the service is registered. If it is, it is returned, otherwise an exception is thrown
This approach seems to work and do not requires the user to do anything.
Drawbacks: # Core.Platform.iOS has a dependency on `Auth.Platform.iOS` # We depend on Unity
However, the `ServiceFinder` class is very simple: I think we can easily implement our own version not using Unity.
This solution is implemented into [PR36|https://github.com/aerogear/aerogear-xamarin-sdk/pull/36] |
|