Skip to content

Instantly share code, notes, and snippets.

@exocode
Forked from rmoriz/readme.md
Created April 11, 2014 08:30
Show Gist options
  • Save exocode/10449991 to your computer and use it in GitHub Desktop.
Save exocode/10449991 to your computer and use it in GitHub Desktop.

HowTo use the Uservoice iOS SDK with RubyMotion

1. Register for e.g. the free plan on https://uservoice.com

2. checkout the sdk from github

cd your-motion-project/vendor
git clone https://github.com/uservoice/uservoice-iphone-sdk

3. add to your Rakefile:


  app.vendor_project('vendor/uservoice-iphone-sdk', :xcode)

  # Make sure these two frameworks are added somehow:
  app.frameworks << 'QuartzCore'
  app.frameworks << 'SystemConfiguration'

4. Call the Uservoice Action e.g. when a button is pressed:

Get your credentials from: https://< yoursubdomain >.uservoice.com/admin/settings#/channels

Trigger this code from e.g. a button:

class YourController < ...

  def support_page
     config = UVConfig.configWithSite("< your subdomain >.uservoice.com", andKey: "< key from uservoice >", andSecret: "< secret >")
     UserVoice.presentUserVoiceInterfaceForParentViewController(self, andConfig: config)
  end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment