azure-mobile-services

azure mobile service not working on xamarin.android

对着背影说爱祢 提交于 2019-12-12 11:35:32
问题 I'm trying to implement Azure Mobile Services in my Xamarin.Forms app. I'm following this link and it works on iOS but not on Android. It throws this exception: MobileServiceInvalidOperationException - "The server did not provide a response with the expected content." I have tried switching between HTTP and HTTPS but could not get it working. It works on Android (native) as well, just not on Xamarin.Android Any help? 回答1: Your issue is tracked here, and seems to be because of the following:

Error in CodeFirst Seed with migrations : Modifying a column with the 'Identity' pattern is not supported. Column: 'CreatedAt'.

久未见 提交于 2019-12-12 11:07:34
问题 I have activated migrations on my Azure Mobile Services project. I filled the new seed function Inside the Configuration.cs class of the migrations. If the tables are empty, the seed function is going without any problems. When my AddorUpdate tries to update the first object I get the error in the inner exception : "Modifying a column with the 'Identity' pattern is not supported. Column: 'CreatedAt'. Table: 'CodeFirstDatabaseSchema.Category'." Part of my code is as follows: context.categories

The user credentials are need to obtain access token. Please call the non-silent acquireTokenWithResource methods. ADALiOS issue

╄→гoц情女王★ 提交于 2019-12-12 10:23:24
问题 In my swift project, I am using convergence dev branch source code. I have added ADALiOS files manually in my project. Currently retrieving access token from refresh token is a problem. Till last week my project was working all fine but as I opened my project on Mondat i.e. 20th March, 2016, I don't know how and why my app is not able to save access token in local cache. So whenever I tried to get access token silently it is unable to retrieve it from local cache. For every call I am getting

Azure NotificationHub - Detect failed notifications

对着背影说爱祢 提交于 2019-12-12 10:13:17
问题 I am trying to store failed notifications in a db , e.g. client does not have internet access. This will enable me to check from a backgroundService if there is a missing notification, and then create it from the backgroundService . I therefore have the following, on my Azure App Service Mobile : var notStat = await hub.SendWindowsNativeNotificationAsync(wnsToast, tag); telemetry.TrackTrace("failure : " + notStat.Failure + " | Results : " + notStat.Results + " | State : " + notStat.State + "

Add related database entry in Azure Mobile Services controller

故事扮演 提交于 2019-12-12 09:53:38
问题 In my Azure Mobile Service I have a controller class UserController : TableController<User> and in it is a get method: // GET tables/User/48D68C86-6EA6-4C25-AA33-223FC9A27959 public SingleResult<User> GetUser(string id) { return Lookup(id); } I want to record each time a user is accessed and so I add a simple type to the model: public class UserVisit : Microsoft.WindowsAzure.Mobile.Service.EntityData { public string VisitingUser { get; set; } public DateTime TimeOfVisit { get; set; } } and

How to use the Azure Mobile Service API feature

随声附和 提交于 2019-12-12 08:15:19
问题 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? 回答1: 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

Azure App Service - Offline Sync - PullAsync Transaction

自作多情 提交于 2019-12-12 06:39:41
问题 I'm working on an App wich uses Xamarin.Forms and Azure App Service. The user must explicitly execute a data sync. When the user starts a data sync a lot of this methods are executed to get the current data from the server: await this.ISyncTable.PullAsync(queryId, query, cancellationToken).ConfigureAwait(false); My problem: The application can get into an inconsistent state. For example when the user closes the App before the data sync is completed. In this state the App is not usable. Edit:

Android Azure invokeApi getting a Null Pointer Exception

我们两清 提交于 2019-12-12 06:37:52
问题 I'm trying to call a custom API on Azure Mobile Services. I've done this successfully from my app so I know I've set it up correctly. However in this case I'm getting a Null Pointer Exception from within the mobile services SDK so I'm having trouble tracing exactly why it's occurring. (using mobile services 1.1.5 for Android) The logs from Azure indicate that the server script is running successfully. Here's the snippet of script code that's returning data: } else { console.log("no match");

Error after performing migrations (.Net backend)

余生长醉 提交于 2019-12-12 04:57:37
问题 My backend is built in .NET, and by including a table in the solution, I got the following error: Cannot create more than one clustered index on table 'dbo.Favorit'. Drop the existing clustered index 'PK_dbo.Favorit' before creating another. This code was generated after the Add-Migration CreateFavorit and update-database command: namespace appService.Migrations { using System; using System.Collections.Generic; using System.Data.Entity.Infrastructure.Annotations; using System.Data.Entity

Redirect page doesn't automatically close after successful OAuth authorization

巧了我就是萌 提交于 2019-12-12 04:38:01
问题 I am following the below tutorial: https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-windows-store-dotnet-get-started-users . I set up the OAuth (via Google) and the created the windows 10 app. When I click on authenticate button, it takes me to Google site and authenticates me. Then it redirects me to a happy page. This happy page has not buttons. Closing the happy page gives me a [User cancelled login exception]. There is no way to proceed ahead after this. What