Hi Eric,
I see problem with your code. May be did not copy it correctly.
http://prntscr.com/4uooaq/direct
Please try following code instead of yours:
pre
var radioVal = localStorage.getItem("osType");
if (radioVal == "androidOS") {
$('input[name="startPanelOSradioGroup"][value="androidOS"]').prop("checked", true).trigger("click");
} else { // if not, then iOS
$('input[name="startPanelOSradioGroup"][value="iOS"]').prop("checked", true).trigger("click");
}
//Note: you don't need to invoke "refresh" method in this case.
/pre
Also please run this code on event when your radiobuttons are ready( "page show" for static group and "service success" for group populated by service).
Regards.