SMS js api: check supported platform before validating fix #15