azure-mobile-services

Integrating the MobileServiceClient with AngularJS

妖精的绣舞 提交于 2019-12-03 16:53:11
I'm trying to use the WindowsAzure.MobileServiceClient within Angular to do single sign on and CRUD operations. Being an Angular noob, I'm trying to figure out the best way to do this: Instantiate it in the $rootScope in .run and call the functions from there? Create a service or factory and make the instantiation of the MobileServiceClient and all of the function calls in that? Would the currentUser and other information get lost when the service/factory isn't being used? Just spool up MobileServiceClient in the controllers that need it? Seems to me if I do it that way, currentUser info would

How to use the Azure Mobile Service API feature

≯℡__Kan透↙ 提交于 2019-12-03 16:16:16
An API feature has been added to WAMS where I can define custom scripts. This seems to deprecate the previous practice of creating a script table. However, I couldn't find any description about how I can use it. Which clients make this feature accessible? Can it be used from iOS or Javascript? And a couple more posts on this topic: http://blogs.msdn.com/b/carlosfigueira/archive/2013/06/14/custom-apis-in-azure-mobile-services.aspx (server side) and http://blogs.msdn.com/b/carlosfigueira/archive/2013/06/19/custom-api-in-azure-mobile-services-client-sdks.aspx (client side). Also, since you tagged

Registering and login users in Azure Mobile Services

陌路散爱 提交于 2019-12-03 14:41:41
I was following this series about Mobile Services and I am using examples in latest tutorial. Now I want to impelement registering and login in Windows Phone for example. I changed to Insert permission to anyone with application key and I can Insert new user by this code: await accountTable.InsertAsync(new accounts() { Username = "admin", Password = "mypassword" }); But I don't know how can I now check for login user? How to get token? The post you referred was written at the end of last year, when there was no support for custom APIs on Azure Mobile Services - the only place where you could

Cannot create more than one clustered index on table

不羁的心 提交于 2019-12-03 11:58:45
I am having the following error after typing update-database: Cannot create more than one clustered index on table 'dbo.AppUsers'. Drop the existing clustered index 'PK_dbo.AppUsers' before creating another. I am working on an Azure mobile service. I have three data models: public class AppUser : EntityData { public string Username { get; set; } public virtual ICollection<RatingItem> userRatings { get; set; } } public class PlaceItem : EntityData { public string PlaceName { get; set; } public int Group { get; set; } public string XCoordinate { get; set; } public string YCoordinate { get; set;

Two Azure Mobile Services (.NET backend) sharing the same Database

拟墨画扇 提交于 2019-12-03 09:15:07
I have two Azure Mobile Services (.NET backend) which share the same Azure Database. Let say Service "X" and "Y". The database is created by service "X" (when it ran for the first time) and created tables "TA" with schema name "X". Then I ran service "Y" which created the same tables "TA" and "TB" in the same database but with schema name "Y". Now I want to make service "Y" to use schema "X" to make sure both services use the same data. Inside the "TADataController" I changed the code to: protected override void Initialize(HttpControllerContext controllerContext) { base.Initialize

Microsoft.Azure.Mobile Client - Handling Server Error using custom IMobileServiceSyncHandler - Xamarin Forms

一世执手 提交于 2019-12-02 19:32:51
问题 I have implemented the Azure - Offline Sync based on the documentation / Sample provided by Microsoft Sample in my Xamarin Forms Application. In the sample / documentation provided, they are using the default Service Handler. // Simple error/conflict handling. A real application would handle the various errors like network conditions,server conflicts and others via the IMobileServiceSyncHandler. Since I need to implement a retry logic for 3 times if the Pull / Push fails. As per the

Syncing Problems with Xamarin Forms and Azure Easy Tables

好久不见. 提交于 2019-12-02 19:04:16
问题 I've been working on a Xamarin.Forms application in Visual Studio using Azure for the backend for a while now, and I've come across a really strange issue. Please note, that I am following the methods mentioned in this blog For some strange reason the PullAsync() method seems to have some bizarre problems. Any data that I create and sync will only be pulled by PullAsync() from that solution. What I mean by that is that if I create another solution that accesses the exact same backend, it can

Azure Mobile App MSA Authentication Difficulties

旧巷老猫 提交于 2019-12-02 16:45:28
问题 So I'm working on a project to redeploy an application that was previously hosted as an Azure Mobile Service as an Azure Mobile App. Said application has a frontend (hosted as a Web App in Azure) and backend API (this is the Mobile App) that is called directly from the frontend's javascript. The upgrade had been going well up until I started working on the Microsoft Account Authentication piece. Following the instructions at... https://docs.microsoft.com/en-us/azure/app-service-mobile/app

Syncing Problems with Xamarin Forms and Azure Easy Tables

懵懂的女人 提交于 2019-12-02 11:28:23
I've been working on a Xamarin.Forms application in Visual Studio using Azure for the backend for a while now, and I've come across a really strange issue. Please note, that I am following the methods mentioned in this blog For some strange reason the PullAsync() method seems to have some bizarre problems. Any data that I create and sync will only be pulled by PullAsync() from that solution. What I mean by that is that if I create another solution that accesses the exact same backend, it can perform it's own create/sync data, but will not bring over the data generated by the other solution,

Microsoft.Azure.Mobile Client - Handling Server Error using custom IMobileServiceSyncHandler - Xamarin Forms

怎甘沉沦 提交于 2019-12-02 11:24:37
I have implemented the Azure - Offline Sync based on the documentation / Sample provided by Microsoft Sample in my Xamarin Forms Application. In the sample / documentation provided, they are using the default Service Handler. // Simple error/conflict handling. A real application would handle the various errors like network conditions,server conflicts and others via the IMobileServiceSyncHandler. Since I need to implement a retry logic for 3 times if the Pull / Push fails. As per the documentation I have created a custom Service Handler( IMobileServiceSyncHandler ). Please find my code logic