If you're using bubblewrap in your RubyMotion app, you can pass along a headers hash in the options in the request, and set the user agent there.
BW::HTTP.get('http://example.com/api-endpoint', headers: { 'User-Agent' => 'SomeRandomUserAgentString' })
That should do it.