Reputation: 493
I'm looking at using the Azure Mobile Sync offline functionality in Xamarin. The functionality is exactly what we are looking for, but I don't want to connect directly to my database tables because I can't define that in code in a Mobile Azure App (as far as I'm aware), and I already have a perfectly good API that deals with all my business logic.
Has anyone managed to connect the offline sync with an existing API without using the Azure Mobile App?
My other alternative here is to create the Azure Mobile App and create methods within it that will connect directly to my API from there, essentially creating a proxy, but I feel that might be more complex than it needs to be. Does anyone have any opinion on this?
I'll need to find a way of passing my API token through as well, but that's a question for another day
Upvotes: 0
Views: 392
Reputation: 8035
You need to create a Domain Manager (ASP.NET, based on the IDomainManager interface) or a Data Provider (Node.js) that implements your API. We have not documented either interface very well, but there are plenty of examples within the server SDK repos on GitHub.
Upvotes: 2