Xamarin iOS SocketException after azure synch - ios

I am new to Xamarion iOS. I am developing a Xamarin iOS app. I have a running azure mobile service with tables ToDoItem and Expense. If download the Xamarin iOS sample To Do List app from azure portal, everything works fine, but I added the azure mobile services libraries (similar to sample) to an existing Xamarin iOS app. Now everything works and i get the data also, but after receiving data from azure after some time the app crashes with a SocketException with a message that socket has been shutdown.
Note: I am using offline sync approach to get data from azure.
Any help?

It's hard to know what's going wrong with just that description. I recommend that you add some logging code, or use Fiddler to trace the outgoing requests.
Here's a sample delegating handler, and the repo has a full client sample for Xamarin: https://github.com/paulbatum/FieldEngineerLite/blob/master/FieldEngineerLite.Client/FieldEngineerLite/Helpers/LoggingHelpers.cs

Related

PushNotification options for c# server to iOS device

Is it possible to use OneSignal to create a native PushNotification to an iOS device from an asp.Net server? What's the difference between OneSignal and PushSharp? Is the difference that I would have to setup OneSignal on my mobile app instead of just allowing the app to hit endpoints on my server to register/unregister for pushNotifications(Which I was planning to use PushSharp for)
The webapp is currently being hosted on Azure, so the notification hub is an option too. But would the communication hub make me be tied down to azure?(Say I wanted to host my webapp on a different service and maybe change the server code to node)
On mobileApp startup, I'd like to send a request to the server to register the device token. It'd be best if I didn't have to config the app.
edit: I also contacted OneSignal with questions, I'll report back with any findings.

Turn web app into iOS app with push notification

I developed a web application for a customer.
Web users can login and have their private account.
The application manager want to send "push" notification to users connected on iOS mobile devices.
Since I cannot achieve this feature with a simple web applications but I don't have resources to develop a native iOs application, the question is:
Is there a simple way to create an iOS "wrapper" to my web application and enable push notification for that app?
It will just be a webView pointing to my web application?
I'll be grateful if somebody can point me to resources, skeleton apps, alternative solutions, etc.
The kind of app you are talking about would be rejected from the app store due to the poor value aported in comparison to your website. This is part of the policy apple applies for a while now.

Using the Watson Speech to Text service in an iOS app with Bluemix

We are creating an iOS application on Bluemix and we are trying to link the Speech to Text service. We've bound the service to the application, but now we don't know how to utilize the service within our app.
How do we use the Speech to Text API in our iOS app with our back end hosted on Bluemix?
You have two options:
You make the call to the Watson Speech to Text service directly from your iOS application. You can either invoke the REST API directly from your iOS app using something like RestKit, or you can use the Watson Speech iOS SDK to make that invocation easier.
You can send all the received audio to your app on Bluemix (serving as a mobile back end) and invoke the Speech to Text REST API from there. This will offload computation from the mobile device, but will most likely increase the latency of getting back the audio transcription to your mobile phone.
Additionally, there is now a Watson iOS SDK which includes the Speech to Text service. This seems like an ideal solution over using the REST API directly if you plan to do a lot of work with Watson.

BES10 Blackberry Device Service and Client Application Communication

I just started working on BES10 for Blackberry 10 devices, for Mobile Device Managerment(MDM) . I just gone through the documentation that are provided in the link http://docs.blackberry.com/en/.
Based on the given information, I understand that, I should have Blackberry Device Service configured in one machine and a client application.
Now my question is how does server notifies the client application to enable/disable particular settings, and what is API. If possible please provide a snippet of code. Thanks in advance.

Unable to integrate amazon in my iOS app

I am scanning ISBN code to get book results from amazon. I created account on amazon developer site. Then I want to create app on amazon site(for getting the AWSAccessKeyId) but its giving option for android app and web app. Is Amazon API's cant be used on iOS devices or we do not need to create app for using amazon API's in iOS.
Well to answer the first part, you can surely use Amazon Api's in iOS apps.
We can read in detail how to set up the app to use Amazon Api here.
The second part is quite tricky. Because the documentation does not state how to get the Access Key Id but it does state that we need it so I guess they simply forget to include the iOS option while generating it and hence an AccessKey generated using Android will work for iOS as well.

Resources