sample code for Go-Larm iOS app