Skip to content

Fellow intune capacitor plugin. Not yet recommended for use outside of our organization

Notifications You must be signed in to change notification settings

fellowapp/intune

Repository files navigation

intune

A plugin for using Microsoft Intune within Capacitor iOS & Android apps

Install

npm install intune
npx cap sync

API

loginAndEnrollAccount(...)

loginAndEnrollAccount(options: { email: string; }) => Promise<void>
Param Type
options { email: string; }

registerAndEnrollAccount(...)

registerAndEnrollAccount(options: { email: string; }) => Promise<void>
Param Type
options { email: string; }

deRegisterAndUnenrollAccount(...)

deRegisterAndUnenrollAccount(options: { email: string; withWipe: boolean; }) => Promise<void>
Param Type
options { email: string; withWipe: boolean; }

deRegisterAndUnenrollAccountId(...)

deRegisterAndUnenrollAccountId(options: { accountId: string; withWipe: boolean; }) => Promise<void>
Param Type
options { accountId: string; withWipe: boolean; }

openIntuneConsole()

openIntuneConsole() => Promise<void>

getEnrolledAccount()

getEnrolledAccount() => Promise<{ account?: string; }>

Returns: Promise<{ account?: string; }>


getEnrolledAccountId()

getEnrolledAccountId() => Promise<{ accountId?: string; }>

Returns: Promise<{ accountId?: string; }>


getEnrolledAccountIds()

getEnrolledAccountIds() => Promise<{ accountIds: string[]; }>

Returns: Promise<{ accountIds: string[]; }>


isSupportedPlatform()

isSupportedPlatform() => Promise<{ supported: boolean; }>

Returns: Promise<{ supported: boolean; }>


addListener('enrollmentResult', ...)

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


Interfaces

PluginListenerHandle

Prop Type
remove () => Promise<void>

Follow all instructions in:

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.

About

Fellow intune capacitor plugin. Not yet recommended for use outside of our organization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published