gym function receive callback function with argument and call it when http response of gcm request