quattro_4 scribble

scribble 落書き (調べた事をただ落書きする)

MotionInMotion Episode 12 - Application URLs

Application URLs - MotionInMotion

2つのアプリ間を遷移

  • Authenticator
    • app.info_plist['CFBundleURLTypes']
      • CFBundleURLName, CFBundleURLSchemes
    • def application(application, openURL:url, sourceApplication:sourceApplication, annotation:annotation)
      • params = Hash[url.query.split(/[&=]/).each_slice(2).to_a]
        • return_url_scheme: url.host,
        • return_url_path: url.path,
        • app_id: params["app_id"],
        • access_rights: params["access_rights"]
  • LogMeIn
    • HomeController button_pressed
      • UIApplication.sharedApplication.openURL(
        • NSURL.URLWithString("login://logmein/random?app_id=123&access_rights=Posts_UsersInfo_Images")