A plugin for using Microsoft Intune within Capacitor iOS & Android apps
npm install intune
npx cap sync
loginAndEnrollAccount(...)
registerAndEnrollAccount(...)
deRegisterAndUnenrollAccount(...)
deRegisterAndUnenrollAccountId(...)
openIntuneConsole()
getEnrolledAccount()
getEnrolledAccountId()
getEnrolledAccountIds()
isSupportedPlatform()
addListener('enrollmentResult', ...)
- Interfaces
loginAndEnrollAccount(options: { email: string; }) => Promise<void>
Param | Type |
---|---|
options |
{ email: string; } |
registerAndEnrollAccount(options: { email: string; }) => Promise<void>
Param | Type |
---|---|
options |
{ email: string; } |
deRegisterAndUnenrollAccount(options: { email: string; withWipe: boolean; }) => Promise<void>
Param | Type |
---|---|
options |
{ email: string; withWipe: boolean; } |
deRegisterAndUnenrollAccountId(options: { accountId: string; withWipe: boolean; }) => Promise<void>
Param | Type |
---|---|
options |
{ accountId: string; withWipe: boolean; } |
openIntuneConsole() => Promise<void>
getEnrolledAccount() => Promise<{ account?: string; }>
Returns: Promise<{ account?: string; }>
getEnrolledAccountId() => Promise<{ accountId?: string; }>
Returns: Promise<{ accountId?: string; }>
getEnrolledAccountIds() => Promise<{ accountIds: string[]; }>
Returns: Promise<{ accountIds: string[]; }>
isSupportedPlatform() => Promise<{ supported: boolean; }>
Returns: Promise<{ supported: boolean; }>
addListener(eventName: "enrollmentResult", listenerFunc: (status: { identity: string; statusCode: number; didSucceed: boolean; errorString: string; }) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
Param | Type |
---|---|
eventName |
'enrollmentResult' |
listenerFunc |
(status: { identity: string; statusCode: number; didSucceed: boolean; errorString: string; }) => void |
Returns: Promise<PluginListenerHandle> & PluginListenerHandle
Prop | Type |
---|---|
remove |
() => Promise<void> |
https://learn.microsoft.com/en-us/mem/intune/developer/app-sdk-ios-phase3
as instructed add
com.microsoft.intune.mam
Include each protocol that your app passes to UIApplication canOpenURL in the LSApplicationQueriesSchemes array of your app's Info.plist file. For each protocol listed in this array, a copy of the protocol appended with -
If your app doesn't use FaceID already, ensure the NSFaceIDUsageDescription Info.plist key is configured with a default message. This is required so iOS can let the user know how the app intends to use FaceID. An Intune app protection policy setting allows for FaceID to be used as a method for app access when configured by the IT admin.