For teams using Cordova instead of Capacitor, follow the below instructions to install and configure the plugin.
Note: We strongly recommend teams transition to Capacitor for the best experience with this and other Ionic native solutions.
Intune is a configuration-heavy service, and it is not feasible to create a Cordova plugin that automatically configures your app. Because of this, you must check in your platforms folders to your code repository to avoid losing configuration changes. Do not blow away your platforms folders (i.e. with
cordova platform rm) unless you are ready to reconstruct the following configuration. Double check your
.gitignore to make sure
platforms/ is not ignored.
#Install the Plugin
This plugin requires Cordova 10. Once you are running the latest version of Cordova, install the plugin:
Cordova support is available starting in 1.3.0 and 2.2.0. Version 1.3.0 should be used for teams targeting iOS < 15. 2.2.0 requires Xcode 13 and enables teams to target iOS 15.
ionic cordova plugin add @ionic-enterprise/intune --variable INTUNE_CLIENT_ID=AZURE_CLIENT_ID --variable INTUNE_ADAL_AUTHORITY=AZURE_ADAL_AUTHORITY --variable INTUNE_REDIRECT_URI_IOS=AZURE_AD_IOS_REDIRECT_URI --variable INTUNE_SIGNATURE_HASH=ANDROID_SIGNATURE_HASH
No additional configuration necessary.
Ionic's Intune integration requires
cordova platform add android@10
Then, follow the Creating Configuration JSON File instructions to create
auth_config.json in a
raw Android resources folder to finish installation.