iOS 设置
复制一个包含安装步骤和本插件的完整 Markdown 指南的配置提示。
iOS 支持矩阵
iOS 支持矩阵- Intune iOS SDK 由此插件打包:
21.5.1 - 最低 iOS 版本:
17.0 - 推荐 Xcode 行:
26.x
Ionic 的 Intune 文档目前指出,使用 Xcode 26 构建的应用程序必须使用 Intune iOS SDK 21.1.0+ ,从 2026 年 1 月 19 日开始。这款插件已经采用了更新的 SDK 行。
1. 在 Info.plist 中添加 Intune 和 MSAL 设置: Info.plist
添加一个字典: IntuneMAMSettings 复制到剪贴板
<key>IntuneMAMSettings</key><dict> <key>ADALClientId</key> <string>YOUR_CLIENT_ID</string> <key>ADALRedirectUri</key> <string>msauth.com.example.app://auth</string> <key>ADALAuthority</key> <string>https://login.microsoftonline.com/common</string></dict>该插件读取:
ADALClientIdADALRedirectUriADALRedirectScheme如果您更喜欢只存储方案作为回退ADALAuthority作为可选的权威覆盖
2. 在 AppDelegate 中将 MSAL 回调转发 AppDelegate
标题为“2. 在 AppDelegate 中将 MSAL 回调转发”import MSAL
func application( _ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool { return MSALPublicClientApplication.handleMSALResponse( url, sourceApplication: options[.sourceApplication] as? String )}3. 配置 URL 方案和特权
标题为“3. 配置 URL 方案和特权”遵循 Microsoft 和 Ionic 的 Intune 指南:
- the
msauth...重定向 URI 方案 - 钥匙串共享 / 钥匙串访问组
LSApplicationQueriesSchemesNSFaceIDUsageDescriptionIf your flow needs biometrics
These are app-specific and cannot be inferred by the plugin.
4. 运行 IntuneMAMConfigurator
Section titled “4. 运行 IntuneMAMConfigurator”Microsoft 需要运行 IntuneMAMConfigurator against your final app Info.plist and entitlements. Use the latest configurator from the official Intune iOS SDK and rerun it whenever those files materially change.
5. 保持部署目标一致
Section titled “5. 保持部署目标一致”Because the bundled Intune iOS SDK is on the current 21.x line, your app target should remain at iOS 17.0 or later.
继续从iOS设置
iOS设置的标题:继续如果您正在使用 iOS设置 来规划原生插件工作,连接它与 使用@capgo/capacitor-intune 为原生能力在使用@capgo/capacitor-intune中 Capgo插件目录 为产品工作流程在Capgo插件目录中 Capacitor由Capgo的插件 为实现细节在Capacitor由Capgo的插件中 添加或更新插件 对于在添加或更新插件中实现详细信息, Ionic Enterprise 插件的替代品 对于 Ionic Enterprise 插件的产品工作流程