Microsoft Ignite 2016 2/17/2019 6:00 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Microsoft Ignite 2016 2/17/2019 6:00 PM Build cross-platform native mobile applications integrated with Office 365 using Xamarin Yaroslav Pentsarskyy Executive Director, OrigamiConnect © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Today’s Demo
Image credit: Nielsen Norman Group
Tools Office 365 Developer Site Windows Azure 2/17/2019 6:00 PM Tools Office 365 Developer Site That’s where files will be stored so that’s obvious Set up a development environment for SharePoint Add-ins on Office 365: https://msdn.microsoft.com/en-us/library/office/fp179924.aspx#o365_signup Windows Azure This is going to be used for authentication to Office 365 Azure trial: https://azure.microsoft.com/en-us/pricing/free-trial/ Visual Studio and Xamarin This is what we’re going to be using to build Android app with C# and .NET © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Sample App Camera App Demo Available for download at: 2/17/2019 6:00 PM Sample App Camera App Demo Available for download at: https://github.com/xamarin/monodroid-samples/tree/master/CameraAppDemo © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Running Camera App Demo
Adding Office 365 to our sample project
Setting tenant URL
Create new Azure application (used for authentication)
Set app to request correct permissions to be able to function
Visual Studio creates all references
Demo Extending Existing Xamarin App Microsoft Ignite 2016 © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Set app to save photos taken to SharePoint Online 2/17/2019 6:00 PM Set app to save photos taken to SharePoint Online Adding code to authenticate with Office 365 Adding code to create List Items in SharePoint Online list Configuring Azure © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Create new Azure directory
Create new Azure directory
Create new Azure directory
Create new Azure directory
Create new Azure directory
Setting Client ID in our Xamarin project
Set Azure app permissions to match those in Xamarin project
Set Azure app permissions to match those in Xamarin project
Running Office 365 enabled app Microsoft Ignite 2016 Running Office 365 enabled app 2/17/2019 6:00 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Viewing uploaded photos in SharePoint Online Microsoft Ignite 2016 Viewing uploaded photos in SharePoint Online 2/17/2019 6:00 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
2/17/2019 6:00 PM © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Installing Microsoft.IdentityModel.Clients.ActiveDirectory Install-Package Microsoft.IdentityModel.Clients.ActiveDirectory -Version 3.0.110281957-alpha -Pre
References in MainActivity.cs using System.Threading.Tasks; using System.Net.Http; //Add System.Net.Http.dll using System.Net.Http.Headers; using System.Xml.Linq; //Add System.Xml.Linq.dll using System.Json; //Add System.Json.dll