How to use as capability a url using Ruby? Currently I am getting the given error " Original error: Remote install failed: pkg:" and "Failure [INSTALL_FAILED_INVALID_APK] (Selenium::WebDriver::Error::UnknownError)"

I’ve been trying to set-up auto-test where the capability “app” point to an URL link. Any one may help me how to do it using Ruby. Using only the URL I’ve been getting those errors shown on title therefore I don’t know whether It’s missing any setting or is a bug.