azure-mobile-services

Azure Push Notification REST No Service is Hosted at the Specified Address

亡梦爱人 提交于 2019-12-11 11:27:55
问题 I am using Azure mobile services to do Push Notifications. I have a push notification service bus created. When I try to connect to that through a REST service I get the following response: 404No service is hosted at the specified address. TrackingId:dfc9aea1-e229-4eb7-b393-c8cd6bce258d_G19,TimeStamp:11/3/2014 8:39:21 PM The POSTMAN request looks like so which duplicates the problem: How do I further troubleshoot this because the service is there? What am I missing? 回答1: A reference to the

Implementing table joins in the Mobile Apps Node.js backend using SQL

ぃ、小莉子 提交于 2019-12-11 11:12:10
问题 Since Azure Mobile Apps does not provide a way to create relationships between tables I decided to create a custom API in my Node.js backend to return data from related tables. The idea was to implement the joins in the backend using SQL, like explained at the Mobile Services Doc. The problem is that I'm using the new Mobile Apps and not the old Mobile Services, so the above code does not work anymore. As I understand the architecture changed from Mobile Service to Mobile Apps and the Node.js

Azure Mobile Services and Azure Web Site integration

拈花ヽ惹草 提交于 2019-12-11 10:44:32
问题 I am hosting a REST endpoint using the ASP.NET Web.Api in a Windows Azure web site. I want to allow authenticated access to this api from mobile devices. The Azure mobile services seems to have easy authentication providers as well as other goodies such as push notifications. What would be an effective strategy for using the two in tandem, the web sites to host the REST endpoint and the mobile services to do authentication and push notifications? 回答1: Before you think about anything ahead,

Azure Mobile Services push notifications channel creation fails after adding Private Networks capability in Windows 8 XAML store app

时光怂恿深爱的人放手 提交于 2019-12-11 09:44:37
问题 Azure Mobile Services push notifications have been working in my Windows 8 XAML Store app until I needed to access local network resources and had to add the Private Networks (Client & Server) capability. Now the application generates the error below when I try to acquire the push channel CurrentChannel = await PushNotificationChannelManager.CreatePushNotificationChannelForApplicationAsync(); CurrentChannel.PushNotificationReceived += CurrentChannel_PushNotificationReceived; A notification

Why the mssql object can not be identified?

瘦欲@ 提交于 2019-12-11 09:33:38
问题 I am getting below error when using mssql object in script as: var mssql =request.services.mssql; Log entry details ERROR Error in script '/api/apitest.js'. TypeError: Cannot read property 'mssql' of undefined at exports.get (D:\home\site\wwwroot\App_Data\config\scripts\api\apitest.js:3:31) [external code] Please suggest. Thanks 回答1: Your problem seems to be a typo: it's request.service.mssql , not request.services.mssql as you have in your question (there's no s at the end of service ). Try

I cant make Linq compare geodistances?

穿精又带淫゛_ 提交于 2019-12-11 06:46:20
问题 Im getting the error: 'new GeoCoordinate(MyEntity.Lat, MyEntity.Lon).GetDistanceTo(14.4416616666667, 5.71794583333333)' is not supported in a 'Where' Mobile Services query expression. From the following query: GeoCoordinate mypos = new GeoCoordinate(MainPage.myEntity.Lat, MainPage.myEntity.Lon); var items = await App.MobileService .GetTable<MyEntity>() .Where(MyEntity => MyEntity.Id != MainPage.myEntity.Id && MyEntity.IsSelected == MainPage.myEntity.IsSelected && (MyEntity.Lat != 0 &&

AZURE Mobile Service forwarding POST request in insert script of table

允我心安 提交于 2019-12-11 06:39:55
问题 I'm trying to use Azure Mobile Service to process / handle GET and POST requests on an empty data table. (really just using the mobile service as a pass through) As part of this I'm trying to forward the request to another url and receive the response back and return it via mobile service. I've figured out the GET part shown below but I'm having trouble the POST part. GET Part:(Which works) function read(query, user, request) { var p = request.parameters; var httpRequest = require('request');

Android Azure SDK - NullPointerException when I try to load something from blob storage

家住魔仙堡 提交于 2019-12-11 06:04:07
问题 I've created a container on Azure called 'assetcontainer'. I've followed the sample to create the following code: CloudStorageAccount account = CloudStorageAccount.parse(BuildConfig.AzureConnectionString); mClient = account.createCloudBlobClient(); mAssetContainer = mClient.getContainerReference("assetcontainer"); // Download the blob // For each item in the container for (ListBlobItem blobItem : mAssetContainer.listBlobs()) { // If the item is a blob, not a virtual directory if (blobItem

How to query $near in CosmosDB via mongoDB protocol

此生再无相见时 提交于 2019-12-11 05:37:48
问题 I have this document { "_id" : "8cbc4fdc79d5479c95deaab471d359bb", "category" : "test", "location" : { "name" : "Café Café", "coordinates" : { "type" : "Point", "coordinates" : [ 34.788589, 32.0857813 ] } } } And this query returns 0 records on CosmosDB, but works as expected on real mongoDB db.activities.find({'location.coordinates': { $near :{$geometry: { type: "Point", coordinates: [ 34.788589, 32.0857813 ] }}}}) 回答1: Based on my test, if I use $near in a query, as you said, it returns 0

MoblieServiceClient providing only two fields in response

岁酱吖の 提交于 2019-12-11 05:11:05
问题 I am using MobileServiceClient for authentication, my provider is Microsoft and Google. After success login in response I am getting auth Token and Sid. But I want more detail. I am using this service for Xamarin forms. Is there any way to get more detail of login user like email, username, verified_email, family_name etc? 回答1: Yes. Send a request to the /.auth/me endpoint with the X-ZUMO-AUTH header set to the ZUMO token. You will get back a JSON blob that contains all the claims plus the