MSGraphNotifications/iOS
AdamCrabtreeMSFT f3c3c53e21 This commit fixes multiple issues identified by PR commentors.
1.It updates the header readme of all files to the correct liscense.
2.APNSToken has been changed from a singleton pattern to directly return the APNSToken from a a class-wide message implemenation method.
3. Removed all references to Project Rome.
4. Removing adaptive cards as it is no longer needed.
5. Fixing MSA scopes.
6. Deduping code between MSA and AAD logins.
7. Updating Secrets.h to have the required paramaters in the new graph notifications client.
2020-01-02 11:42:16 -08:00
..
GraphNotificationsSample This commit fixes multiple issues identified by PR commentors. 2020-01-02 11:42:16 -08:00
GraphNotificationsSample.xcodeproj This commit fixes multiple issues identified by PR commentors. 2020-01-02 11:42:16 -08:00
.gitignore This commit fixes multiple issues identified by PR commentors. 2020-01-02 11:42:16 -08:00
Podfile This commit fixes multiple issues identified by PR commentors. 2020-01-02 11:42:16 -08:00
Podfile.lock This commit fixes multiple issues identified by PR commentors. 2020-01-02 11:42:16 -08:00
README.md This commit fixes multiple issues identified by PR commentors. 2020-01-02 11:42:16 -08:00

README.md

Sample App for running the Microsoft Graph notifications client library in your iOS application

Getting Started

Prerequisites

  1. Have xCode and Cocoapods installed installed. More details here

Building the sample

  1. pod install (from directory of podfile)
  2. build from xCode

Running the sample

  1. Build the sample (if is not built already).
  2. Initialize and setup MSAL using the directions given here
  3. Set the following values:
  • APPLICATION_CLIENT_ID in Secrets.h: this is the client ID of your Azure AD client app
  • APP_HOST_NAME in secrets.h: this is the "cross-device domain name" that you have registered and verified in your Cross-Device App registration in Partner Center (https://partner.microsoft.com/dashboard )
  1. Sign in with an Azure AD or MSA account.
  2. Click Subscribe, then grant permissions for the iOS app to read and write notifications.
  3. Click the other buttons to exercise the various functions.
  4. Post a new notification from Graph explorer and see a notification popup. Click the popup to be redirected to https://docs.microsoft.com/en-us/graph/notifications-concept-overview

Other tips

  1. Getting duplicate push notifications? This is a known server-side issue in some cases. See the README for the client itself to learn more. Look for the text starting with:

userNotificationApiImpl.processPushNotificationAsync(notificationPayload) may call back to the Graph notification server to fetch notification data

  1. To look at the logs of the sample app and the client library, the best way to do it is to set the xCode environment variable CFNETWORK_DIAGNOSTICS = 3