azure-mobile-services

Unable to update database to match the current model

天涯浪子 提交于 2020-01-25 20:38:07
问题 I created a fresh Azure Mobile Services project and published to a newly created service on Azure. I then published the project to Azure and verified that I could post/get from it. Next, I enabled migration via the nuget manager console by following a guide i found online online and that I found on MSDN to set up data migration. I walked through the steps, adding my initial migration and re-publishing it to Azure. I did not make any changes to my models. The only thing I did after the first

Azure Mobile Apps saves incorrect datetime in Sqlite database

女生的网名这么多〃 提交于 2020-01-25 13:08:14
问题 I am trying to save an Entity with an ID and an DateTimeOffset in a AzureMobileServicesClient SQLite database in a Xamarin Forms application. This work fine as long as the time stamp is non ambiguous. When we go from daylight saving to standard time there is a period a time where a time stamp can be ambiguous depending on the timezone. In 2016 in Denmark it is 2:00-3:00 AM October 30th. I save the Entities DateTimeOffset as UTC, but it saves it as a local timestamp. When I save an ambiguous

Setting jwt audience in Azure Mobile Apps backend

僤鯓⒐⒋嵵緔 提交于 2020-01-25 13:00:07
问题 I am playing with an Azure Mobile Apps backend (nodeJS), as discussed here. I have been using the default web setup configuration to develop my mobile app, but now I want to customise the cloud backend functionality, so I have created a local backend with the Azure-Mobile-Apps SDK. I logged in with my mobile app (using the authorization aspect of the Azure client SDK) and then captured the AuthToken, using a live managed backend setup. When I then come to try and authorise a request, I get

Try/Catch not working for WP8 C# .NET with Azure Mobile Services

感情迁移 提交于 2020-01-25 12:58:47
问题 I'm playing around with this block of code: try { mscvUser = imstUser .Where(User => User.Id == intId) .Take(1000) .ToCollectionView(); } catch(MobileServiceInvalidOperationException f){ MessageBox.Show(f.ToString()); } It works fine normally, but I've been deliberately disconnecting my Internet for testing purposes, and I keep hitting MobileServiceInvalidOperationException, but it won't catch it in that block; it throws it back to App.xaml.cs, breaks, and shuts down the app. 回答1: I think you

MobileServiceInvalidOperationException: Error: Bad request

拥有回忆 提交于 2020-01-25 10:58:09
问题 I've been struggling for hours to try and upload data to an Azure database (mobile service). My datamodel on the Azure database: My model in Xamarin Forms (the class): public class Test { public string Id { get; set; } [JsonProperty("XAxis")] public int XAxis { get; set; } [JsonProperty("YAxis")] public int YAxis { get; set; } } Writing the data to Azure: var test = new Test { XAxis = 100, YAxis = 200 }; await client.GetTable<Test>().InsertAsync(test); However when I execute this I will get

MobileServiceInvalidOperationException: Error: Bad request

耗尽温柔 提交于 2020-01-25 10:58:07
问题 I've been struggling for hours to try and upload data to an Azure database (mobile service). My datamodel on the Azure database: My model in Xamarin Forms (the class): public class Test { public string Id { get; set; } [JsonProperty("XAxis")] public int XAxis { get; set; } [JsonProperty("YAxis")] public int YAxis { get; set; } } Writing the data to Azure: var test = new Test { XAxis = 100, YAxis = 200 }; await client.GetTable<Test>().InsertAsync(test); However when I execute this I will get

iOS doesn't receive push from Azure Notification Hub

梦想的初衷 提交于 2020-01-16 04:37:07
问题 In my iOS app I'm trying to add push notifications via Azure Mobile Services. I have followed this article: https://azure.microsoft.com/en-us/documentation/articles/mobile-services-javascript-backend-ios-get-started-push/ But my app still receive no push notifications! In the iOS dev center I registered App ID with Dev and Production push certificates. Added Dev certificate (.p12) to Sandbox in the Azure. I wrote POST function exports.post = function(request, response) { var text = 'You\'ve

How do I insert entities with a 1:n relationship in Azure App Service

你。 提交于 2020-01-15 05:00:30
问题 I need a 1:n relationship using the Azure App Service. I followed this tutorial for the entities. My client entities (same as tutorial, except I added a constructor): public abstract class Entity { // defines id, version, createdAt, updatedAt, deleted } public class Animal : Entity { public string Name { get; set; } } public class Zoo : Entity { public Zoo() { Animals = new List<Animal>(); } public string Name { get; set; } public List<Animal> Animals { get; set; } } My server entities (same

Permission on multiple routes in a custom API for an Azure mobile service

柔情痞子 提交于 2020-01-14 14:14:11
问题 I am working in Azure Mobile Service where I have made a custom api. For those it is possible to set permissions (like public, application, user and admin), which is very useful. But I need multi-level api (like for example /api/user/profile/{userId} ), and to be able to set some permission to the sub-level api. I have found it is possible to add other levels of api paths with the following code exports.register = function (api) { /* Get public user profile on some other user */ api.get('

Permission on multiple routes in a custom API for an Azure mobile service

半腔热情 提交于 2020-01-14 14:14:07
问题 I am working in Azure Mobile Service where I have made a custom api. For those it is possible to set permissions (like public, application, user and admin), which is very useful. But I need multi-level api (like for example /api/user/profile/{userId} ), and to be able to set some permission to the sub-level api. I have found it is possible to add other levels of api paths with the following code exports.register = function (api) { /* Get public user profile on some other user */ api.get('