question

Lasse-2733 avatar image
0 Votes"
Lasse-2733 asked LuDaiMSFT-0289 commented

Intune & Cordova

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?

mem-intune-device-configurationsmem-intune-application-management
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LuDaiMSFT-0289 avatar image
0 Votes"
LuDaiMSFT-0289 answered

@Lasse-2733 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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Lasse-2733 avatar image
0 Votes"
Lasse-2733 answered LuDaiMSFT-0289 commented
  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.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@Lasse-2733 Thanks for your update.

Based on my understanding, it is a normal situation. Personally owned with work profile or corporate owned with work profile both have personal and work space.

The default camera is in the personal space and the Cordova app is in the work space. These enrollment methods decide that data will not transfer to each other.

For this issue, I have done a lot of research. I find someone fed back this requirement in intune uservoice.
https://microsoftintune.uservoice.com/forums/291681-ideas/suggestions/33272506-include-system-apps-for-android-enterprise-afw-w+

And someone give an idea in the command.
First go in your endpoint under Apps -> Android -> click Add+ -> App Type "Android Enterprise system app" and create e. g. your native Samsung camera app, with the corresponding package name (com.sec.android.app.camera).
Then just assign this app to a group you created which includes the specific device. With an android enterprise system app you can only say "required". But if you do this it will automatically install the desired app.
This process should also work with a personal owned device with working profile

Hope it will give any idea to you.

0 Votes 0 ·