add platform compability
add platform compability in service.js