How to restrict my mobile app with AllowedApplications values of Airwatch SDK Profile Restrictions?

Pelin Konaray 291 Reputation points
2022-04-25T07:53:02.02+00:00

Hi,

I have a Xamarin Forms application. In this application, I am trying to listen to the SDK profiles from the Workspace One UEM/Airwatch console and take the relevant actions. (Group & Settings -> All Settings -> Apps -> Settings and Policies -> Profiles -> Add Profile -> SDK Profile)
For example, in my application, the picture taken with the camera is uploaded, but if "Enable Camera" is set to "False" in SDK Profile -> Restrictions settings, I prevent the camera from opening from my application and show the appropriate message to the user.

For this, I implemented the implementation in the following link:
https://github.com/vmwareairwatchsdk/vmware-ws1-sdk-forms

However, I'm having trouble with the "Restrict documents to be opened in following apps" part. In my application, I saw that the "AllowedApplications" array came in the AWRestrictionsPayload object. For testing, I serialized this array to json and I wrote it to txt. When I look at this txt file, I see that there is an integer value for the applications added to the allowed application. But how can I make sense of which application these integer values ​​correspond to?

var profile = $"Allowed Applications: {JsonConvert.SerializeObject(restrictionPayload.AllowedApplications)}";
Helper.AWLog(profile);

The value I see in the txt is:

"Allowed Applications: [{"value":10768205216},{"value":10768205264}]"

In my application, there is a feature such as share files with Whatsapp/Mail/Message etc. I think I should restrict to "Restrict documents to be opened in following apps" option. But I didn't understand how to do this. How do I make sense of this value or make this constraint?

Thanks in advance.

Developer technologies | .NET | Xamarin
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.