集成Air Watch Android Studio

前端之家收集整理的这篇文章主要介绍了集成Air Watch Android Studio前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我对AirWatch Concept非常新颖,但对AirWatch彻底了解.我已经通过了以下链接,

http://developer.air-watch.com/android/application-configuration-with-the-android-sdk/

http://developer.air-watch.com/android/android-sdk-setup/

但是徒劳无功

有人可以帮助我关于Air Watch在Android中的整合吗?

到目前为止,

我已经在https://apidev.awmdm.com创建了应用程序,我已经添加了assignemnts.这里的问题是,如何在Air Watch Console中添加我的Android应用程序中的作业详细信息.

帮助真的很感激.

更新:

我可以创建并将应用程序从AIR WATCH CONSOLE推送到我的设备.现在,我所面临的问题是,如果我在AIR WATCH CONSOLE中添加了一些应用程序配置,我无法在我的应用程序中获取这些详细信息.

以上情况我已经通过了以下Url,

https://appconfig.org/android/非常类似于https://appconfig.org/ios/

我已经实现了上述url中提到的那些东西,但是我仍然无法获得这些细节.如果我在任何地方出错,请让我知道.

我知道在Air Watch控制台中传递的关键值对将在iOS中进入com.apple.configuration.managed键.有人有这样的想法,这些关键价值对将会如何来.据我所知,他们将通过限制经理处理.但不知道/线索如何在Android中处理.

更新:

xml/app_restrictions.xml:

<?xml version="1.0" encoding="utf-8"?>
<restrictions xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <restriction
        android:key="ManagedServer"
        android:restrictionType="string"
        android:title="Managed Server"
        tools:ignore="ValidRestrictions" />

    <restriction
        android:key="@string/mdm_key_managed_server_name"
        android:restrictionType="string"
        android:title="@string/mdm_key_managed_server_url"
        tools:ignore="ValidRestrictions" />
    <restriction
        android:key="@string/mdm_key_managed_server_url"
        android:restrictionType="string"
        android:title="@string/mdm_key_managed_server_url"
        tools:ignore="ValidRestrictions" />

</restrictions>

oncreate方法

IntentFilter restrictionsFilter =
                new IntentFilter(Intent.ACTION_APPLICATION_RESTRICTIONS_CHANGED);

    BroadcastReceiver restrictionsReceiver = new BroadcastReceiver() {
        @Override
        public void onReceive(Context context,Intent intent) {

            // Get the current configuration bundle
            Bundle appRestrictions = myRestrictionsMgr.getApplicationRestrictions();

            // Check current configuration settings,change your app's UI and
            // functionality as necessary.
            Toast.makeText(LoginActivity.this,"Reciever Called",Toast.LENGTH_LONG).show();
            RestrictionsManager myRestrictionsMgr =
                    (RestrictionsManager)
                            getSystemService(Context.RESTRICTIONS_SERVICE);
            if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {
                if (myRestrictionsMgr != null) {
                    Bundle appRestrictions = myRestrictionsMgr.getApplicationRestrictions();
                    if (appRestrictions != null) {
                        if (appRestrictions.containsKey("ManagedServer")) {
                            String mConfigDetails = appRestrictions.getString("Managed Server");
                            Toast.makeText(LoginActivity.this,"" + mConfigDetails,Toast.LENGTH_LONG).show();
                        }
                    }
                }
            }
        }
    };

    registerReceiver(restrictionsReceiver,restrictionsFilter);

用户列表:

当我实际尝试其他命令时:

更新:

创建了一个示例应用程序并发布到Play Store.应用链接如下,

https://play.google.com/store/apps/details?id=com.manu.samplemdm

现在,它是一个游戏商店的应用程序.当我发送应用程序配置但无法在应用程序中接收它.它给我的空包从应用程序.

帮助将非常感激.

帮助真的很感激

解决方法

与AirWatch整合有几种不同的方法.这取决于您要使用的技术集.我认为这是根据我在你的帖子中看到的与你最相关的2:

> AirWatch SDK
> AppConfig Standard

这两种方法都可以实现类似的功能,但每种方法都具有不同的部署这听起来像是你使用第二种方法,它使用AppConfig标准和Google提供的本机API来通过AirWatch发布应用程序读取配置值.

需要注意的一个重要事情是Android上的AppConfig标准方法需要该设备支持“Android for Work”注册,这是由Google发布的相对较新的管理协议.值得注意的是,AirWatch支持Android for Work注册,因此可能只是将AirWatch测试实例配置为“Android for Work注册”而不是传统的旧版Android注册协议.有关Android for Work的更多信息,请访问:
https://enterprise.google.com/android/solutions/personal/

如果您已经是AirWatch的客户,如果您尚未访问有关如何在AirWatch中设置Android for Work的文档,则可能会在其资源门户上创建一个帐户. https://resources.air-watch.com

我希望这有帮助.

原文链接:https://www.f2er.com/android/311530.html

猜你在找的Android相关文章