開始使用 Microsoft Intune App SDKGet started with the Microsoft Intune App SDK

本指南可協助您使用 Microsoft Intune 快速啟用行動應用程式的應用程式保護原則。This guide will help you quickly enable your mobile app for app protection policies with Microsoft Intune. 若能先了解 Intune App SDK 概觀中說明的 Intune App SDK 優點,可能會對您很有幫助。You may find it useful to first understand the benefits of the Intune App SDK, as explained in the Intune App SDK overview.

Intune App SDK 支援跨 iOS 和 Android 的類似案例,而且能為 IT 系統管理員建立跨平台的一致體驗。The Intune App SDK supports similar scenarios across iOS and Android, and is intended to create a consistent experience across the platforms for IT admins. 但是,由於平台限制,因此針對特定功能的支援有些微差異。But there are small differences in the support of certain features, because of platform limitations.

向 Microsoft 註冊您的市集應用程式Register your store app with Microsoft

如果應用程式是無法公開的組織內部應用程式:If your app is internal to your organization and will not be publicly available:

您就不需要 註冊應用程式。You do not need to register your app. 若是內部企業營運應用程式,IT 系統管理員將會在內部部署這類應用程式。For internal line-of-business apps, the IT administrator will deploy the app internally. Intune 可偵測是否已使用 SDK 建置應用程式,並允許 IT 系統管理員對其套用應用程式保護原則。Intune will detect that the app has been built with the SDK, and will let the IT administrator apply app protection policy to it. 您可以跳到啟用 iOS 或 Android 應用程式的應用程式保護原則這一節。You can skip to the section Enable your iOS or Android app for app protection policy.

如果您的應用程式將會發行到公開應用程式商店 (例如 Apple App Store 或 Google Play):If your app will be released to a public app store, like the Apple App Store or Google Play:

您_必須先向 Microsoft Intune 註冊應用程式,並同意註冊條款。You must_ first register your app with Microsoft Intune and agree to the registration terms. 然後 IT 系統管理員就可以將應用程式保護原則套用至已啟用的應用程式,該應用程式將被列為 Intune 應用程式合作夥伴。IT administrators can then apply app protection policy to the enlightened app, which will be listed as an Intune app partner.

等到註冊已完成且 Microsoft Intune 小組確認之後,Intune 系統管理員就不會有將應用程式保護原則套用至應用程式深層連結的選項。Until registration has been finished and confirmed by the Microsoft Intune team, Intune administrators will not have the option to apply app protection policy to your app's deep link. Microsoft 也會將您的應用程式加到其 Microsoft Intune Partner 頁面Microsoft will also add your app to its Microsoft Intune Partners page. 應用程式的圖示將會在那裡顯示,以表示該應用程式支援 Intune 應用程式保護原則。There, the app's icon will be displayed to show that it supports Intune app protection policies.

若要開始註冊程序,請填寫 Microsoft Intune App Partner Questionnaire (Microsoft Intune 應用程式合作夥伴問卷)To begin the registration process, fill out the Microsoft Intune App Partner Questionnaire.

我們將會使用問卷回應中列出的電子郵件地址與您連絡,並繼續註冊程序。We will use the email addresses listed in your questionnaire response to reach out and continue the registration process. 此外,如果有任何疑慮,我們也會使用您註冊的電子郵件地址與您連絡。Additionally, we use your registration email address to contact you if we have any concerns.

注意

問卷中及透過與 Microsoft Intune 小組的電子郵件通訊收集的所有資訊,皆會遵循 Microsoft 隱私權聲明中的規定來處理。All information collected in the questionnaire and through email correspondence with the Microsoft Intune team will honor the Microsoft Privacy Statement.

註冊程序的相關作業What to expect in the registration process:

  1. 提交問卷之後,我們將會透過您註冊的電子郵件地址與您連絡,以確認我們成功收到郵件或要求其他資訊以完成註冊。After you have submitted the questionnaire, we will contact you via your registration email address, to either confirm successful receipt or request additional information to finish the registration.

  2. 在收齊您的所有必要資訊之後,我們即會傳送 Microsoft Intune 應用程式夥伴協議給您簽署。After we receive all necessary information from you, we will send you the Microsoft Intune App Partner Agreement to sign. 本協議會說明相關條款,您的公司必須先接受這些條款,才能成為 Microsoft Intune 應用程式合作夥伴。This agreement describes the terms that your company must accept before it becomes a Microsoft Intune app partner.

  3. 當您的應用程式成功註冊 Microsoft Intune 服務,以及當 Microsoft Intune 合作夥伴網站上將您的應用程式顯示為精選應用程式時,皆可獲得通知。You will be notified when your app is successfully registered with the Microsoft Intune service and when your app is featured on the Microsoft Intune partners site.

  4. 最後,您應用程式的深層連結就會包含在下一次的每月 Intune 服務更新中。Finally, your app's deep link will be added to the next monthly Intune Service update. 例如,如果在 7 月完成註冊資訊,將於 8 月中支援深層連結。For example, if the registration information is finished in July, the deep link will be supported in mid-August.

如果未來您應用程式的深層連結有所變更,您將必須重新註冊應用程式。If your app's deep link changes in the future, you will need to re-register your app.

注意

如果您使用新版 Intune App SDK 更新您的應用程式,請通知我們。Please inform us if you update your app with a new version of the Intune App SDK.

下載 SDK 檔案Download the SDK files

適用於原生 iOS 和 Android 的 Intune App SDK 會裝載在 Microsoft GitHub 帳戶上。The Intune App SDKs for native iOS and Android are hosted on a Microsoft GitHub account. 這些公用存放庫具備分別適用於原生 iOS 和 Android 的 SDK 檔案︰These public repositories have the SDK files for native iOS and Android, respectively:

如果您的應用程式是 Xamarin 或 Cordova 應用程式,請使用這些 SDK 變異:If your app is a Xamarin or Cordova app, please use these SDK variants:

建議您註冊一個 GitHub 帳戶,以用來從我們的存放庫執行分支作業及提取作業。It's a good idea to sign up for a GitHub account that you can use to fork and pull from our repositories. GitHub 可讓開發人員與我們的產品小組進行溝通、開啟問題並接收快速回應、檢視版本資訊,以及將意見提供給 Microsoft。GitHub lets developers communicate with our product team, open issues and receive quick responses, view release notes, and provide feedback to Microsoft. 如有 Intune App SDK GitHub 問題,請連絡 msintuneappsdk@microsoft.com。For questions on the Intune App SDK GitHub, contact msintuneappsdk@microsoft.com.

啟用 iOS 或 Android 應用程式的應用程式保護原則Enable your iOS or Android app for app protection policy

您需要下列其中一個開發人員指南,協助您將 Intune App SDK 整合到應用程式:You will need one of the following developer guides to help you integrate the Intune App SDK into your app:

設定應用程式的遙測Configure Telemetry for your app

Microsoft Intune 會收集應用程式使用量統計資料的資料。Microsoft Intune collects data on usage statistics for your app.

  • iOS 的 Intune App SDK:SDK 預設會記錄使用事件的相關 SDK 遙測資料。Intune App SDK for iOS: The SDK logs SDK telemetry data on usage events by default. 這些資料會傳送到 Microsoft Intune。This data is sent to Microsoft Intune.

    • 如果您選擇不要將 SDK 遙測資料從應用程式傳送至 Microsoft Intune,則必須停用遙測傳輸,方法是在 IntuneMAMSettings 字典中將 MAMTelemetryDisabled 屬性設定為 "YES"。If you choose not to send SDK telemetry data to Microsoft Intune from your app, you must disable telemetry transmission by setting the property MAMTelemetryDisabled to "YES" in the IntuneMAMSettings dictionary.
  • 適用於 Android 的 Intune App SDK:不會透過 SDK 記錄遙測資料。Intune App SDK for Android: Telemetry data is not logged through the SDK.

整合後的後續步驟Next steps after integration

測試應用程式Test your app

在您完成整合 iOS 或 Android 應用程式與 Intune App SDK 的必要步驟之後,需要確定使用者和 IT 系統管理員的所有應用程式保護原則皆已啟用且正常運作。After you finish the necessary steps to integrate your iOS or Android app with the Intune App SDK, you will need to ensure that all the app protection policies are enabled and functioning for the user and the IT admin. 若要測試整合式應用程式,您需要下列項目:To test your integrated app, you will need the following:

  • Microsoft Intune 測試帳戶:若要對啟用 Intune 的應用程式測試 Intune 應用程式保護功能,您必須具備 Microsoft Intune 帳戶。Microsoft Intune test account: To test your Intune-enlightened app against Intune app protection features, you will need a Microsoft Intune account.

    • 如果您是為 iOS 或 Android 市集應用程式啟用 Intune 應用程式保護原則的 ISV,完成註冊步驟中所述的 Microsoft Intune 註冊後,即會收到促銷代碼。If you are an ISV enabling your iOS or Android store apps for Intune app protection policy, you will receive a promo code after you finish the registration with Microsoft Intune, as outlined in the registration step. 促銷代碼將可讓您註冊 Microsoft Intune 試用版,以獲得 1 年的延長使用時間。The promo code will let you sign up for a Microsoft Intune trial for one year of extended use.

    • 如果您開發的是不會傳送至商店的企業營運應用程式,您應該透過組織來存取 Microsoft Intune。If you are developing a line-of-business app that will not be shipped to the store, you are expected to have access to Microsoft Intune through your organization. 您也可以在 Microsoft Intune 中註冊以獲得 1 個月免費試用版。You can also sign up for a one-month free trial in Microsoft Intune.

  • Intune 應用程式保護原則:若要對應用程式測試所有 Intune 應用程式保護原則,您應該知道每個原則設定的預期行為。Intune app protection policies: To test your app against all the Intune app protection policies, you should know what the expected behavior is for each policy setting. 請參閱 iOS 應用程式保護原則Android 應用程式保護原則的描述。See the descriptions for iOS app protection policies and Android app protection policies.

  • 疑難排解︰如果您在手動測試應用程式的使用者體驗時遇到任何問題,請參閱針對 MAM 進行疑難排解Troubleshoot: If you run into any issues while manually testing your app's user experience, check out the Troubleshooting MAM. 本文提供啟用 Intune 之應用程式中可能會遇到的常見問題、對話方塊和錯誤訊息的協助。This article offers help for common issues, dialogs, and error messages that may be experienced in Intune-enlightened apps.

為應用程式加上徽章 (選擇性)Badge your app (optional)

驗證 Intune 應用程式保護原則在應用程式中運作之後,您可以使用 Intune 應用程式保護標誌為應用程式圖示加上徽章。After validating that Intune app protection policies work in your app, you can badge your app icon with the Intune app protection logo.

這個徽章對 IT 系統管理員、終端使用者和潛在 Intune 客戶表示您的應用程式使用 Intune 應用程式保護原則。This badge indicates to IT administrators, end-users, and potential Intune customers that your app works with Intune app protection policies. 它鼓勵 Intune 客戶使用和採用您的應用程式。It encourages the usage and adoption of your app by Intune customers.

徽章是一個公事包圖示,可以在下面的範例中看到︰The badge is a briefcase icon and can be seen in the samples below:

徽章範例 1 徽章範例 2

為應用程式加上徽章的必要步驟What you'll need to badge your app:

  • 可讀取 .eps 檔案的映像操作應用程式,或可讀取 .ai 檔案的 Adobe 應用程式。An image manipulation application that can read .eps files, or an Adobe application that can read .ai files.

  • 您可以在 Microsoft Intune GitHub 找到 Intune app badge assets and guidelines (Intune 應用程式徽章資產和指導方針)。You can find the Intune app badge assets and guidelines on the Microsoft Intune GitHub.

若要提交意見反應,請前往 Intune Feedback