Git Product home page Git Product logo

contoso-airlines-ios-swift-sample's Introduction

Contoso Airlines iOS App

WORK IN PROGRESS

Prerequisites

Minimally, you'll need XCode to compile and run this sample, along with a physical iOS device to debug the application. In order to enable the Graph notifications portion of the demo, you'll also need to setup the Contoso Airlines Flight Team Provisioning Sample, including the optional configuration to enable Graph notifications.

Setup

Add Project Rome service principals to your tenant

You need the Azure Active Directory Powershell module to perform this step.

  1. Open Powershell and enter Connect-AzureAD -TenantDomain YOUR_DOMAIN to authenticate to Azure AD as an administrator.

  2. Run the following commands to add three service principals:

    New-AzureADServicePrincipal -AppId d32c68ad-72d2-4acb-a0c7-46bb2cf93873
    New-AzureADServicePrincipal -AppId 04436913-cf0d-4d2a-9cc6-2ffe7f1d3d1c
    New-AzureADServicePrincipal -AppId 19686ca6-5324-4571-a231-77e026b0e06f

Register an application in the Azure portal

Register an app in the Azure portal named Flight Team iOS App.

  • Accounts in this organizational directory only
  • Redirect URI: (leave blank on create screen, set on the Authentication tab). Choose the following two options under **Suggested Redirect URIs for public clients (mobile, desktop):
    • The value that starts with msal
    • urn:ietf:wg:oauth:2.0:oob
  • Add delegated permissions for Graph:
    • Calendars.Read
    • User.Read
    • User.Read.All
  • Add delegated permissions for Microsoft Activity Feed Service:
    • Notifications.ReadWrite.CreatedByApp
    • UserActivity.ReadWrite.CreatedByApp
  • Add delegated permissions for Microsoft Command Service:
    • Device.Command
    • Device.Read
  • Add delegated permissions for Microsoft Device Directory Service:
    • dds.read
    • dds.register
  • Add delegated permissions for Windows Notification Service:
    • wns.connect
  • Add delegated permissions for Flight Team Notification Service
    • Notifications.Send
  • After adding the permissions, use the Grant admin consent for Contoso button
  • Rename the ./FlightSchedule/Config/AppConfig.swift.example file to AppConfig.swift and set the values for appId, tenantId, and notificationDomain.
  • Edit the ./FlightSchedule/Info.plist file and replace the YOUR_APP_ID_HERE value with your app ID.
  • Add the application ID in the Support Microsoft Account & Azure Active Directory section of your cross-device experience registration in the Windows Dev Center.

Triggering a notification

Assuming you have the Contoso Airlines Flight Team Provisioning Sample deployed and working, you can trigger a notification to this app if you are signed in as a user that is a member of an existing flight team. Using your flight administrator account, modify the flight in the SharePoint list to update either the departure gate or departure time.

contoso-airlines-ios-swift-sample's People

Contributors

jasonjoh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.