azure-mobile-services

Mobile App GetIdentityAsync no value

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 01:42:46
问题 I have this code from Azure Services Mobile App, API custom controller. The result always the same "1:1". I test with all identity providers, google, facebook, twitter, and Microsoft Account, except AD. I think the problem is the call to GetIdentityAsync. Can anyone help me? Thanks [HttpGet] public async Task<string> GetIdentityInfo() { var user = (MobileAppUser)this.User; string str = ""; string Provider = "YES", UserId = "NO"; try { if (user != null) { Provider = "1"; UserId = "1"; var

Security error to persist data in Azure with an Android app

独自空忆成欢 提交于 2019-12-12 22:43:26
问题 Apparently it's a security issue, but the example downloaded from the website works correctly (ToDo), my application is simpler, does not work, because I really do not understand, I checked the libraries, the manifesto, code, everything seems to be correct. What am I doing wrong? I have an open question on this problem earlier, but now I think I can best describe the problem Error : Unauthorized Complete error: Error in activity com.microsoft.windowsazure.mobileservices.MobileServiceException

uploading image to azure blob storage

瘦欲@ 提交于 2019-12-12 20:16:29
问题 I know this question can be interpreted as a duplicate, but I can simply not get the blop service working. I have followed the standard example on msdn. I have implemented in my code but followed the example. I can get my MobileService, with the supplied script in the example, to insert a blob with open properties. I then use this code to upload an image to the blob storage: BitmapImage bi = new BitmapImage(); MemoryStream stream = new MemoryStream(); if (bi != null) { WriteableBitmap bmp =

Azure mobile service custom API calling SQL SP multiple times

倖福魔咒の 提交于 2019-12-12 18:36:13
问题 I have an Azure mobile service with a custom API and it seems to be making multiple SQL calls. When I look at the log, I am seeing multiple responses coming back from the SP. Some of these are empty returns (no recordset), while one of them is communicating with the SP correctly and returning a recordset. I know my iOS app is only calling the custom API once. Here is the custom API: exports.post = function(request, response) { var mssql = request.service.mssql; var params = [request.query

Azure MobileService in BackgroundTask

百般思念 提交于 2019-12-12 18:25:08
问题 My question is pretty simple : Can we use MobileServices in BackgroundTasks? (WP 8.1 XAML) I have an universal app connected to a MobileService from Azure and I wanted to let the BackgroundTask synchronize the data of my remote database. So, is this possible? public sealed class BackgroundTask : IBackgroundTask { public async void Run(IBackgroundTaskInstance taskInstance) { BackgroundTaskDeferral deferral = taskInstance.GetDeferral(); //Connect to mobile service and add data deferral.Complete

Azure App Service - DateTime changes during Sync

丶灬走出姿态 提交于 2019-12-12 18:19:45
问题 I'm working on an App wich uses Xamarin.Forms and Azure App Service (include offline Sync). On the client there is a piece of code like this: appointment.StartDate = System.DateTime.Now; Let's suppose appointment.StartDate is now 2017-07-05 12:00:00 . After the user syncs the data against the server, this happens: Date in SqlLite database (on client): 2017-07-05 12:00:00 Date in server database: 2017-07-05 10:00:00 So, I assume that Azure changes my date to UTC. That might be technically

Azure Notification Hub: 'Test Send' was successfully sent, but not any GCM traffic. Why?

旧时模样 提交于 2019-12-12 15:01:48
问题 In the Azure Portal, I created a Notification Hub. And in "Push notification services - Google (GCM)", I entered the API Key value that I obtained from GCM. In order to verify my settings of Azure Notification Hub and GCM, I ran 'Test Send' in Azure Portal - Notification Hub. I got a message in Portal soon as below. Successfully sent test message. Outcome: {1 passed, 0 failed}. Please see result section for details. BUT I have not gotten any message traffic in GCM. Refer to the screenshot,

Unable to load DLL 'sqlite3.dll': The specified module could not be found in UWP Xamarin.Forms

孤人 提交于 2019-12-12 13:51:42
问题 I am trying to write app for UWP Xamarin.Forms with use of Azure Mobile SQLiteStore package. I struggle with SQLitePCL package which is dependency of that mentioned above package. In my UWP project I referenced extension SQLite for Universal Windows Platform also it's dependency Microsoft.VCLibs Error is : Unable to load DLL 'sqlite3.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) Android app works fine, only UWP has this problem crashing app as soon as it

Get Facebook Auth token from Azure Easy API

回眸只為那壹抹淺笑 提交于 2019-12-12 12:32:19
问题 Easy API are very poorly documented, I'm trying to get the Facebook Auth token from a user authenticated against it through Azure, I've created an API with the following GET: module.exports = { "get": function (req, res, next) { res.json(req.user.getIdentity("facebook")); } }; However azure responds with "cannot read property 'getIdentity' from undefined". If user is undefined in res, where can I get it from? 回答1: Easy APIs is documented in the Azure Mobile Apps Node.js SDK HOWTO and within

Can't send push notification to single iOS user on Azure Mobile Services

会有一股神秘感。 提交于 2019-12-12 12:18:19
问题 I've set up my mobile service on Azure and uploaded the development certificate with push notification permissions. I'm using mono touch to the get the device token from the app and sending that up with a request. When the item is inserted I want to send a push to the client but in the logs I keep getting this error { [Error: 400 - Invalid expression: '568d4f52 615ee9....... where the expression is my device token. If I go to the table I can see that the device token matches the one generated