Azure Mobile Services with Xamarin and MvvmCross, The Internet of Things, and Raygun at SydModNet

AlecTucker.2208AlecTucker.2208 AUInsider, University, Developer Group Leader mod

Presentation Titles:

A Demonstration of Raygun4Net from the Xamarin Component Store, Ian Jones
The Internet of Things, Mobility and the .Net Micro Framework, Dave Glover
Azure Mobile Services with Xamarin and MvvmCross, Alec Tucker

Group: Sydney Mobile .Net Developers

Group Sponsors:

White Clarke Group - www.whiteclarkegroup.com
Xamarin - www.xamarin.com
Pluralsight - www.pluralsight.com
Mindscape - www.mindscapehq.com

Link: http://www.meetup.com/SydneyMobileDotNetDevelopers

Ian kicked off giving a great demo of the Raygun component. He was brave enough to show us the reported exceptions in his iPad app that had just gone into Production. This was very well received and we're hoping to get Ian back to present again soon.

Dave then gave his presentation on the .Net Micro Framework, with accompanying demos of gadgets that left us all wanting to start some home automation projects! All performed using Visual Studio on his Surface Pro.

I then walked through creating a cross platform Xamarin project using MvvmCross with Azure Mobile Service access in the Portable Class Library. The demo just looked at the Windows Phone implementation. Now that the AMS NuGet Packages and the corresponding components in the Xamarin Component Store have been updated I'll be updating the source to cover the remaining platforms before uploading it to the usual github location. I'll post an update once this has been done.

The event was listed in the Xamarin forums here:

https://forums.xamarin.com/discussion/14580/march-25-sydney-mobile-net-developers-group-azure-mobile-services-with-xamarin-and-mvvmcross#latest

Keep an eye on any and all of the following for future group updates

Meetup.com: http://www.meetup.com/SydneyMobileDotNetDevelopers
Xamarin Forums: https://forums.xamarin.com/categories/events
Twitter: @alecdtucker

Posts

  • AlecTucker.2208AlecTucker.2208 AUInsider, University, Developer Group Leader mod

    ...and here are the links to the presentations:

    The Internet of Things, Mobility and the .Net Micro Framework

    http://www.slideshare.net/AlecTucker/internet-of-things-mobility-net-micro-framework-sydmobnet-march-2014

    Azure Mobile Services with Xamarin and MvvmCross

    http://www.slideshare.net/AlecTucker/sydney-mobile-net-developers-group-mar-2014-sydmobnet

  • JonDouglasJonDouglas USXamarin Team, University, Developer Group Leader Xamurai

    @Alec.Tucker‌ Where can one find your groups repository? I've got a couple AMS/MVVMCross samples I'll push to my group's repo if you're interested. I'll provide the link when I'm done :P

  • AlecTucker.2208AlecTucker.2208 AUInsider, University, Developer Group Leader mod

    Hi Jon,

    That sounds great, thanks. My repo is here:

    https://github.com/AlecDTucker/SydMobNet

    I have a detailed blog post to go with the Azure Mobile Service code - I'll post here once I've uploaded it all.

  • AlecTucker.2208AlecTucker.2208 AUInsider, University, Developer Group Leader mod

    Hi Jon,

    I've uploaded the code now to the repo above.
    Blog post is here: http://blog.alectucker.com/post/2014/05/02/cross-platform-azure-mobile-services-with-xamarin-and-mvvmcross.aspx

    Alec

  • Hi Alec,

    I'm doing a similar presentation but I keep having issues with the AMS portion. When I try making a call to getall, I get a System.Net.WebExceptionStatus.NameResolutionFailure error. Any thoughts?

    Thanks,
    Andrew

  • AlecTucker.2208AlecTucker.2208 AUInsider, University, Developer Group Leader mod

    Hi Andrew,
    That would normally mean that it can't find the host. What url are you using?

    You'll see this at the top of the CloudService class, looking like this:

    private readonly MobileServiceClient MobileService = new MobileServiceClient("https://sydmobnet.azure-mobile.net", "[your key would go here]");

    It needs to point to the service that you've created in Azure.

    Alec

  • I got it to work. So when you have a bad internet connection, the call will fail and it gives you that error. So I had to write a loop to keep trying until it got a response.

  • AlecTucker.2208AlecTucker.2208 AUInsider, University, Developer Group Leader mod

    Ah - that makes sense. So you'd consider this a general connection issue and maybe try a couple of times and then notify the user - and ideally fall back to a SQLite DB on the device instead

  • DanishNazirDanishNazir PKMember

    I have am trying to authenticate users using azure active directory but i am not able to do do you have any sample which i can use?
    Thanks in advance

  • AlecTucker.2208AlecTucker.2208 AUInsider, University, Developer Group Leader mod

    Hi there,

    Thanks for the message - good to know someone's actually reading my posts! :) Hopefully it's not to out of date. Getting AD integration up and running in a neat way is still on my list of things to do, so I don't have any good samples to share as yet. I suggest you take a look here:

    https://channel9.msdn.com/events/speakers/vittorio-bertocci

    ...and here:

    http://blogs.msdn.com/b/vbertocci/

    Vittorio is the man when it comes to Azure AD :)

    Cheers
    Alec

  • Pratik94Pratik94 INMember

    I followed the blog :
    I am getting an Invalid Operation exception while inserting or retrieving values from the server. Following is the exception message :
    Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

    On SO, i found out that the application URL should have https instead of http, but that did not helped either.

    Any guidance would be of great help

  • AlecTucker.2208AlecTucker.2208 AUInsider, University, Developer Group Leader mod

    Hi Pratik - what's the url that you're using (without giving away your key)?

  • Pratik94Pratik94 INMember

    I followed the blog : http://blog.alectucker.com/post/2014/05/02/cross-platform-azure-mobile-services-with-xamarin-and-mvvmcross.aspx for creating a cross platform app.

    I am getting an Invalid Operation exception while inserting or retrieving values from the server. Following is the exception message :
    Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

    On SO, i found out that the application URL should have https instead of http, but that did not helped either.

    Any guidance would be of great help.

  • Pratik94Pratik94 INMember

    I followed the blog : http://blog.alectucker.com/post/2014/05/02/cross-platform-azure-mobile-services-with-xamarin-and-mvvmcross.aspx for creating a cross platform app.

    I am getting an Invalid Operation exception while inserting or retrieving values from the server. Following is the exception message :
    Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException: The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

    On SO, i found out that the application URL should have https instead of http, but that did not helped either.

    Any guidance would be of great help.

  • AlecTucker.2208AlecTucker.2208 AUInsider, University, Developer Group Leader mod

    Hi Pratik - what's the url that you're using? (taking care not to publish your key!)

Sign In or Register to comment.