VMware Workspace ONE Community
msweisberg
Enthusiast
Enthusiast

Add a bookmark to the home screen for an android device enrolled in AfW/Android Enterprise

Anyone know how to use a profile to add a bookmark for a url to the home screen for an android device that is enrolled into AfW/Android Enterprise.


Normally we just use the standard bookmark profile and that has worked just fine. But any profile categorized as ' android'  are not applied to devices in AfW. Only profiles categorized as ' Android - Work'  are.

Labels (1)
47 Replies
Boe_K
Enthusiast
Enthusiast

I'm not aware of any at this time Michael but hopefully they get this added soon as this also prevents the Privacy App/Web Clip from pushing out to Android Enterprise (aka AFW) devices. We opened a support ticket up for it awhile back and were told they are working on a fix but they did not give us any time frame as to when it would be enabled.
0 Kudos
msweisberg
Enthusiast
Enthusiast

Yeah...been in contact with AW on this.  Seems the google api for this doesn't exist.  They have a feature enhancement request into google to create that api.
0 Kudos
sam_newton
Contributor
Contributor

0 Kudos
msweisberg
Enthusiast
Enthusiast

Sam - you put a post in here about using a custom xml settings to put a bookmark on the home screen.  However, I don't see your post and I am very interested in your idea.

Can you share it again.
0 Kudos
PeterAir
Contributor
Contributor

This is possible via custom XML.
And you can get the customer XML, by creating a standard/legacy profile for Android, adding the Bookmarks as needed and then saving the profile.
In the profile list view screen select the profile and click XML.

Copy the XML text, then create a new AfW profile.
Go to CUSTOM SETTINGS and paste the XML.

Remove the beginning and ending section of ' wap-provisioningdoc' , so that your custom payload starts and ends with the section ' characteristic' .

0 Kudos
msweisberg
Enthusiast
Enthusiast

I tried that and while the custom xml profile deploys, it doesn't create any sort of bookmark anywhere.
0 Kudos
PeterAir
Contributor
Contributor

Michael: I tested this on Work Managed enrolled Motorola Moto G5 and got the bookmark deployed as expected.
Possibly there is still some differences on different devices?

Technically the Privacy ' app'  and catalog are also just webclips and they seem to work, too.

Would be nice, if somebody from AirWatch could shed some light into this discussion and clarify the payload that AirWatch is using for Privacy and Catalog clip.
0 Kudos
msweisberg
Enthusiast
Enthusiast

So this is the code I am using:


' <characteristic type=' com.airwatch.android.bookmarks'  uuid=' 94b40404-d3e3-4ca1-ba38-fe31c722105b' >


    <parm name=' Label'  value=' Website'  />


    <parm name=' AddToHomescreen'  value=' True'  />


    <parm name=' URL'  value=' http://website.domain.com'  />


    <parm name=' IconId'  value=' 471'  />


    <parm name=' ShowInAppCatalog'  value=' True'  />


    <parm name=' Icon'  value=' iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAATkSURBVHhe7ZtrbFRFFMer0QQwQULCQ2qogmh8BAigiYkJqFEeiQloVFD5oKKCVSEaFd9E/WKEEPhAAoW+LJC0loqtgFCFKi2PLCSlYqONLZFWqLUiSLFsuzueM7kzzN09M3fvpuHeZedPfv92zpxlZv7c7N0u25ycgpGRnA2j2i0anG+YRQOYDcgEmA3IBJgNyASYDcgEmA3IBJgNyASYDcgEmK+AMlGP7XmePEtKgF3xAaFOnu8gz+MJWFYEhGrsPk6eyQhY1gSEGvnFneS5tIBlVUBHu46R59ICllUBoahzaQHzFdC0qpmh5v6aR1l37xknClrUubSA+QooUzCJ6tcCdkUGdOjPo04cyaL6tYDZgEyA2YBMgNmATIDZgEyApR1Q/v7lzpLBidoXEnhA0Vifs1ywovaGBBpQf7zfWSp4UftDAgtoxZGVzjLhELVHJLCAwiZqj4gNyBG1RySUAbWcbWOLf3zzskLtEQldQJGuRrI/KEIX0IzqeWR/UIQuoOnVc8n+oLABeWAD8sAG5IENyAMbkAc2IA9sQB6ELqAZNeF6oXjkr2POzpJF9WsBG5CAmv7+mewPCpOofi1gAxIQqqPnNHvr0CfAx4HxUeRzFoc/JlHn0gI2YAFliqhzaQHLqoD2tNeR59IC5iug5Yc/dZbKTA3elEeeSwuYr4CQaCzqLJdZKv/ta/I8RsB8B4T819/rLJsZ+rZ9H3kOT8DSCgh55vuXWTxuvmMELfys0NgtU8j9pwRY2gFlBWA2IBNgNiATYDYgE2A2IBNgNiATYCkHNLgwjy1r+IANK75V1q7aMBpu9/muPuyZvfMpVw15ovYFtq3tG7a+uZSNKZuYNI/gY1Vm71yQ1DO58kE+l1gXqI9/rf49Nm7rPWRfSoD5uoJQZS2Vclz4y1ZeE+Priyfw8dPwGknUcjdP4rVEdV7okj0CndSe1U3rk2oqOg0tGk/2GwHzHRAqcTy85DY+XtW4jo/FvNrzZO2LfIxX3YHOCK+1nfs9qbei9dKPBI/XLuK1dceLZC2VgE78e1KOF+7N5zWU2pcSYL4CKvm1XC50V8V0/j1K/N98n/PJM9Ff0VrNx7eX3ydrguYzLXzu2o25soZSAxK1pu5mOfYbEHLvV3N4/cvWGlfdEzBfAY0ovYMvdHfVTHaqp5PF4jG29qeNvIbzKPWAQmKsIv6uRT+8Lmuo3fBz06TKBzjiSpu1Y77sSScgUUcl1o2A+QoIQe1ur+Nf53/3kqy9cXAF/3rj5smuXpQYqwwpvInPvVr/rqxRWtNU4Hpc6ANSf1lE1P65eNapuDcgroDrim521ZGqth18bljJpbsiSlyBPX0X+FjMCdIJKBf+0VD1pw+76p6A+Q7oubplfDE8vKhNq3qY185Fz7t6B20ay+so9ZfZPox8xmu9/b2ufpQISNz9tp/Y5erxG1Delqm8hrpGeb5LCTDfASGoocW3JNXws9NqDXlk10I+lyh8cx3vaGovSn0OE1eR2icCUoXvT4l5naZue0j2pAxYWgHh56QTawXNZUkHFlxdcAMrhTvgxViUdfScYs/uW0r21f3RwJY2vC/H+IISa0v2vy1r+BoLayrqu4VqHZ/wX6l/R875BiytgLIGMBuQCTAbkAkwG5AJMBuQCTAbkAkwG5AJMBuQllHsf3MQiJUmnAQTAAAAAElFTkSuQmCC'  />


  </characteristic>'








The profile deploys out to my device as expected but nothing else happens. No icon shows on the homescreen, nothing is added to the app catalog, nothing is added to chrome, nothing.

0 Kudos
PeterAir
Contributor
Contributor

I've been testing this further now and the results are ' confusing' .

On my Motorola G5 with Android v7, I get the bookmark webclip deployed to the home screen without issues.
I have one custom payload with two bookmarks, where the first does not have an icon file and the second is the XML from Michaels post, including the icon and it deploys just fine: https://aerion.box.com/v/afw-bookmark

On my Nokia 6 with Android v8, enrolled to the same environment with the same account, the bookmark profile happily installs, but does not show anywhere.

Another thing I noticed on the Nokia 6, is, that the App Catalog webclip is visible, but the Privacy webclip is not.
Not sure, if it's the Android version difference or device vendor difference.

Michael, which kind of device with which OS are you using?

Anyway, it seems that this certainly needs some clarification from AirWatch and not just the XML, as it is not reliable.
0 Kudos
msweisberg
Enthusiast
Enthusiast

So, we are a samsung galaxy shop.  Right now a mix of galaxy s6-s8 devices and soon to be s9.  Our OUS devices have started to get OS 8, but US devices are still on OS 7.  Most of them run OS 7 but we still have some running OS 6.  This has been tested on OS 6 and 7 with no successful result.
0 Kudos
GerardSchutrups
Contributor
Contributor

Tried Peter G's solution (custom XML). Works like a charm!

0 Kudos
msweisberg
Enthusiast
Enthusiast

Seems to work on any device except the galaxy S line.
0 Kudos
DaveWhiteDaveWh
Contributor
Contributor

Tried this and doesn't display the shortcut on the desktop of a Nokia 3 or 5. I see it doesn't work on the Nokia 6 above either.
0 Kudos
CRAIGJOHNSTONCR
Contributor
Contributor

I wanted to add my two cents to the discussion.
I've been using web shortcuts for years in AirWatch and they have been correctly appearing on all iOS and Android phones no matter what the brand and OS version.

In fact, just a few weeks ago, I provisioned a new Android test phone for myself, and the web shortcut deployed perfectly.

Now yesterday I created a new web shortcut, same as I always do, and this is what I'm seeing.

iOS devices - Profile deploys - icon appears on the Home screen (as expected)
Android - Profile deploys - icon never appears on the Home screen (not expected).

Being that this same test phone (its a Galaxy S7 edge) received an older web shortcut just a few weeks ago, and now it cannot show a new one, seems (to me at least) to indicate a bug in either the AW console, or the Android Agent.
Maybe when the web shortcut profile is being generated at the console, it messes up the XML.  Just speculation.

Either way, this has been working for years on Android and iOS, and it is not a Google/Android  issue as someone suggested earlier in the thread.

I'd like to know if anyone has found a solution, or can shed anymore light on the issue.
0 Kudos
CRAIGJOHNSTONCR
Contributor
Contributor

Its amazing what a cup of coffee does for a problem.

It seems that the AW console defaults an Android web shortcut to NOT display on the Home screen. (silly).

Try this.  Go back and edit the Android web shortcut, then click Edit app Info, then click the Advanced section.  There you will see that under advanced, the default is to NOT show on the Home screen.  Simply change that to Yes, save and publish, and even if it shows Unchanged for all devices, it will re-deploy the profile, and viola!  Web shortcut appears on the Home screen.

VMWare I think, needs to change that default to YES for Android web shortcuts.  Also, maybe automatically expand the Advanced section when creating a web shortcut so web can see that its set incorrectly.

Please let me know if you guys are able to fix the issue using my method.
0 Kudos
DavidFink
Enthusiast
Enthusiast

Craig, would this work for the Catalog? I am on console 9.2 and using AFW limited to smartgroups. When I enroll a device not using the AFW workflow I don't get the catalog shortcut at all. So I've tried making a weblink to catalog.cn###ds.awmdm.com and that isn't working either.
PeterAir
Contributor
Contributor

I created a support ticket and got confirmation that web bookmarks are not officially supported on AFW.
AirWatch Agent 8.2 will have a custom payload option to deploy we bookmarks, but it will generate a one time permission request from users.
So let's see what happens, after agent v8.2 is out.
0 Kudos
DavidFink
Enthusiast
Enthusiast

There is another change at play with Android 8.0 AirWatch will have to accommodate.

Android 8.0 (API level 26) includes the following changes to app shortcuts:
•The com.android.launcher.action.INSTALL_SHORTCUT broadcast no longer has any effect on your app, because it is now a private, implicit broadcast. Instead, you should create an app shortcut by using the requestPinShortcut() method from the ShortcutManager class.

I'm not sure if external links work, I found the above here

https://developer.android.com/about/versions/oreo/android-8.0-changes
0 Kudos
CRAIGJOHNSTONCR
Contributor
Contributor

Peter G.  We are not using Android for Work at all.

When AirWatch rebrands to Workspace ONE UEM (in a few weeks), they will also start defaulting to using AfW for all Android management, but support the older method which uses a Device Admin.  I can understand then that if AfW doesn't support web clips that it wouldn't work, but if you are using a ' legacy Android'  profile, it should.

The support rep you spoke to may have incorrectly made the assumption that you are already using Workspace ONE UEM which tries to force you into using AfW.
0 Kudos