title: Associating sqlite3 db to an iPhone app
body: <p>I'm trying to associate an SQLite3 database file with our app so that it's easy to open backed up database from an email. The following however does not seem to work as Mail still doesn't recognizes the file (on an iPad and iPhone 4):</p>
  
  <pre><code>&lt;key&gt;UTExportedTypeDeclarations&lt;/key&gt;
  &lt;array&gt;
      &lt;dict&gt;
          &lt;key&gt;UTTypeConformsTo&lt;/key&gt;
          &lt;array&gt;
              &lt;string&gt;public.database&lt;/string&gt;
              &lt;string&gt;public.data&lt;/string&gt;                    
          &lt;/array&gt;
          &lt;key&gt;UTTypeDescription&lt;/key&gt;
          &lt;string&gt;App Database File&lt;/string&gt;
          &lt;key&gt;UTTypeIdentifier&lt;/key&gt;
          &lt;string&gt;com.company.App.db&lt;/string&gt;
          &lt;key&gt;UTTypeTagSpecification&lt;/key&gt;
          &lt;dict&gt;
              &lt;key&gt;public.filename-extension&lt;/key&gt;
              &lt;string&gt;db&lt;/string&gt;
              &lt;key&gt;public.mime-type&lt;/key&gt;
              &lt;string&gt;application/x-sqlite3&lt;/string&gt;            
          &lt;/dict&gt;
      &lt;/dict&gt;
  &lt;/array&gt;
  
   &lt;key&gt;CFBundleDocumentTypes&lt;/key&gt;
   &lt;dict&gt;
    &lt;key&gt;CFBundleTypeName&lt;/key&gt;
    &lt;string&gt;App Database&lt;/string&gt;
    &lt;key&gt;CFBundleTypeIconFiles&lt;/key&gt;
    &lt;array&gt;
     &lt;string&gt;Icon-Small.png&lt;/string&gt;
     &lt;string&gt;Icon.png&lt;/string&gt;
    &lt;/array&gt;
      &lt;key&gt;CFBundleTypeRole&lt;/key&gt;
          &lt;string&gt;Editor&lt;/string&gt;
  
    &lt;key&gt;LSItemContentTypes&lt;/key&gt;
    &lt;array&gt;
     &lt;string&gt;com.company.App.db&lt;/string&gt;
    &lt;/array&gt;
    &lt;key&gt;LSHandlerRank&lt;/key&gt;
    &lt;string&gt;Alternate&lt;/string&gt;
   &lt;/dict&gt;
  &lt;/dict&gt;
  </code></pre>
  
  <p>Any idea what I'm doing wrong?</p>