correctly sends gcm/sms depending on settings