Questions tagged [android-restrictions]

Android App restrictions allow the enterprise administrator to remotely specify settings for apps.

If you are developing apps for the enterprise market, you may need to satisfy particular requirements set by a company's policies. Application restrictions allow the enterprise administrator to remotely specify settings for apps. This capability is particularly useful for enterprise-approved apps deployed to a managed profile.

More details on Android Developers Page

Added in API level 21.

15 questions
12
votes
3 answers

RestrictionManager getRestrictions() is always empty

I'm trying to set-up the remote configuration for my app with MobileIron EMM. I've done everything as described in developer guide: 1. I've set-up the manifest: ...
Evgeniy Mishustin
  • 3,343
  • 3
  • 42
  • 81
3
votes
1 answer

Android Background activity start

I'm aware of the Restrictions on starting activities from the background starting from Android API 29, but I'm challenged by some app which is able to present an Activity despite the restrictions. The app does not use the SYSTEM_ALERT_WINDOW…
3
votes
2 answers

How can IT admins configure an Android app with managed configurations

I have an Android app that is used by many enterprises, each one has their own Server Address and Port. When each enterprise downloads my app I want them to be able to configure the Server Address and the Port number. Maybe the IT administrator of…
2
votes
0 answers

MDM - Test managed configuration deployment for mobile (Android/iOS) apps

In the past we were able to deploy private versions of our app to EMM's (e.g. VMWare, MobileIron) and test out managed configurations. But today, we are unable to test new app updates within a managed environment. Android…
Alex
  • 2,033
  • 1
  • 24
  • 40
2
votes
1 answer

React Native Google Places API restriction issue

I get the following error while using React Native Google Places autocomplete. This IP, site or mobile application is not authorized to use this API key... I'm using a Google Places API Web Service key, which restrictions on Android-App. This…
Bertjuhh
  • 105
  • 1
  • 1
  • 9
1
vote
1 answer

Why the AMAPI misses some managed properties from my schema?

I have an Android application with some managed configurations. But when I ask the AMAPI for the schema of this application, not all restrictions are retrieved. Here is the schema :
1
vote
2 answers

Enterprise Android App Config - Application Restrictions - Not working as expected

Really could use some guidance on how to debug / troubleshoot this issue I'm having. I built my first app designed to be configured by an Enterprise MDM / EMM service. I created the app_restrictions.xml file, and I setup my Bundle for restrictions…
Ed Kuhner
  • 369
  • 1
  • 2
  • 11
1
vote
0 answers

How i can block any android application to access my website?

Basically, this third-party application is using data from my website to fetch data and load into there application. The scenario is this application has an internal login page on which end user insert my website credentials & this application fetch…
Tech2K
  • 11
  • 2
1
vote
1 answer

Implementing managed configurations in NativeScript

I am developing a NativeScript app for android and wish to implement managed configurations as described here: https://developer.android.com/work/managed-configurations.html. I have tried adding app_restrictions.xml to the…
dwp
  • 13
  • 4
1
vote
2 answers

Error:(8, 30) String types not allowed (at 'description' with value 'Public Albums of this username will be fetched')

I am trying to configure restrictions in my Application but I am getting following error Error:(8, 30) String types not allowed (at 'description' with value 'Public Albums of this username will be fetched'). Error:Execution failed for task…
Aniket Thakur
  • 66,731
  • 38
  • 279
  • 289
0
votes
0 answers

How to check cellular data limit option is enabled or disabled in android 11 device?

On the android 11 device, I want to check for the "data limit" option is enabled or disabled on the device those are running Android 11. Currently, I am using NetowrkPolicy, NetworkPolicyManager, NetworkTemplate classes. But those all are hidden…
0
votes
2 answers

How do you use getInt() with restrictions (managed configurations)?

I have this in app_restrictions.xml: Now if I want to read it I get > java.lang.ClassCastException: java.lang.String cannot be cast to…
The incredible Jan
  • 741
  • 10
  • 17
0
votes
0 answers

Storing REST api secure key on client side Android

Is it best practice to put "secure key" as part of the android code and generate apk for distribution. I make some rest calls inside my app, where "secret key" to call external services are passed as part of the HTTP headers.Is that a good…
sudharsan tk
  • 494
  • 6
  • 14
0
votes
1 answer

Android App Restrictions - Bundle Empty Package when testing Test DPC

I am trying to use android app restrictions. I have implemented the code and am trying to test it using Test DPC. S I have set up a work profile (without a user) on my device using Test DPC. I added my application to the set of applications Test DPC…
0
votes
0 answers

File Upload error from android to server

Any one help me , if i upload zip file from android to server throw error in server org.apache.commons.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly I follow bellow URL Upload multiple image file using…