Universal Links in iOS


#1

Hello,

Just getting started on RubyMotion. Trying to set up Universal Links in iOS to open URLs in my app. I’ve been reading through the Apple Developer documentation but I’m not sure how to implement the steps in RubyMotion instead of Xcode. Specifically these steps:

  • Add an entitlement that specifies the domains your app supports.
  • Update your app delegate to respond appropriately when it receives the NSUserActivity object.

Any help would be appreciated. Thanks


#2

You specify the entitlements in your Rakefile with app.entitlements. Create a new Xcode project. Use it to configure the appropriate entitlements and then open up the .entitlements to see what was added. E.g

<key>com.apple.developer.associated-domains</key>
<array>
    ...
</array>

Becomes:

app.entitlements['com.apple.developer.associated-domains'] = [...]