Fix unknown application type error when installing web apps

This commit is contained in:
Lasantha Dharmakeerthi 2024-05-13 02:01:18 +00:00
commit 03d6a145d8

View File

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