Fix unknown application type error when installing web apps

geo-fence-issue-id-11418
Lasantha Dharmakeerthi 7 months ago
commit 03d6a145d8

@ -68,9 +68,7 @@ public class MDMAndroidOperationUtil {
WebApplication webApplication = new WebApplication(); WebApplication webApplication = new WebApplication();
webApplication.setUrl(application.getLocation()); webApplication.setUrl(application.getLocation());
webApplication.setName(application.getName()); webApplication.setName(application.getName());
// webApplication.setType(application.getType().toString()); webApplication.setType(application.getType().toString());
// Hard-corded "type" to "webapp". Some agent versions accept only "webapp" as the type.
webApplication.setType("webapp");
webApplication.setProperties(application.getProperties()); webApplication.setProperties(application.getProperties());
operation.setPayLoad(webApplication.toJSON()); operation.setPayLoad(webApplication.toJSON());
break; break;

Loading…
Cancel
Save