Intune & Cordova

Lasse 1 Reputation point
2021-09-20T06:19:50.407+00:00

Hi,

I have a Cordova app which is using Cordova camera plugin. The app has a button which launched device's camera app, the camera app takes a photo, saves it to temp location, handles the path to the app and the app handles the photo then. This is fully working on Android & IOS and can be distributed via Google Play/Apple Appstore or just installed using the apk file.

Now the Android app should be distributed through Intune. The app can be downloaded, installed and launched correctly. The problem comes with camera, the device says that camera is outside work profile when launching it. The photo can be taken but nothing comes back to the app. Since this is working everywhere else this has to be some Intune restriction. I'm not familiar with Intune and I have no access to my customer's Intune settings and they don't know Intune well enough.

Can anybody help me with this? What is blocking getting information from camera app to the real app?

Microsoft Intune Configuration
Microsoft Intune Configuration
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Configuration: The process of arranging or setting up computer systems, hardware, or software.
1,715 questions
Microsoft Intune Application management
Microsoft Intune Application management
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Application management: The process of creating, configuring, managing, and monitoring applications.
873 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Lu Dai-MSFT 28,346 Reputation points
    2021-09-21T02:08:34.523+00:00

    @Lasse Thanks for posting in our Q&A.

    To clarify this issue, we appreciate your help to collect some information:
    1.Which method did you use to enroll the Android device?
    2."The photo can be taken but nothing comes back to the app." Did you mean that you can take photos but can't come back from camera to Cordova app?
    3.If possible, please share some screen shots about your description. I'm not familiar with this Cordova app.

    If there is anything update, feel free to let us know.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Lasse 1 Reputation point
    2021-09-21T05:32:16.073+00:00
    1. Either personally owned with work profile or corporate owned with work profile. My test phone is personally owned with work profile and customer's devices are corporate owned with work profile. The problem is anyway the same.
    2. I can launch camera app from my Cordova app and take a photo. After that it comes back to my app, but the path to the photo doesn't come back to my app in a return message from camera. That way it works very well without work profile.

    Cordova app is in work profile and camera app is in personal profile. Cordova app works and I can launch camera from it but it says when launching camera "you are using app outside work profile" or something like that. I believe this is a problem with restrictions between work profile app and personal profile app. The customer says it's not possible to add camera app to work profile. The data cannot be transferred now between work profile and personal profile I suppose.

    I would like to know if there is a setting in Intune somewhere that affects this and can be modified to get rid of this restriction. If my Cordova app is installed in personal profile this problem won't exist since it's in the same profile with Android camera app.