I have a Xamarin.Forms iOS app that uses the Share Extension feature to upload files from the attachments of emails in Microsoft Outlook on the device.
My Xamarin.Forms iOS app is distributed via Microsoft Intune with the MDM policy "Send org data to other apps: Policy managed apps" enabled for the managed device.
Although my app doesn't have any integration with the Microsoft Intune SDK and is not a Policy managed app, I still want to use the Share Extension feature in my app. However, when the "Send org data to other apps: Policy managed apps" policy is enabled, the files accessed through the Share Extension feature are corrupted (possibly due to being encrypted).
I want to exempt my app from the "Send org data to other apps: Policy managed apps" policy. In my research, I found this link: https://learn.microsoft.com/en-us/mem/intune/apps/app-protection-policies-exception#ios-data-transfer-exceptions
It suggests that I can define unmanaged apps as exempt apps using iOS URL protocols to exempt them from this policy. I tried adding the URL scheme of the iOS project of my Xamarin.Forms app to the exempt app list, but it didn't work. I also added the URL scheme used by the Share Extension to the exempt app list, but that didn't work either. How can I resolve this issue?
Edit:
I saw a field called exempt apps in Microsoft Intune. As in the picture below:
I also added the iOS URL Schema informations from my own project to this area. As follows:
Default: skype;app-settings;calshow;itms;itmss;itms-apps;itms-apss;itms-services;com.ios.test;com.ios.test.shareextension;com.ios.test.shareextensionui;
- My iOS app URL Schema: "com.ios.test"
- My Share Extension App URL Schema: "com.ios.test.shareextension"
- My Share Extenaion UI URL Schema: "com.ios.test.shareextensionui" (I used the following approach when developing the UI of the Share extension project. For this reason, I also have a Share Extenaion UI project.)
But that didn't work.