32652

Universal link - The domain has some validation issue

Im working on universal link to open the application while tap the url. I am using https server and done all the steps from apple (Apple Doc). But the apple universal link validator show below error,

Your file's 'content-type' header was not found or was not recognized.

enter image description here

The apple-app-site-association file successfully uploaded to server and the file be like below,

{ "applinks": { "apps": [], "details": [ { "appID": "J2HBF9A3PZ.com.aors.speaku", "paths": [“*”,”/“] } ] } }

And apple said no need to sign the apple-app-site-association file whether the domain has https.

If the file is unsigned, it should have a Content-Type of application/json. Otherwise, it should be application/pkcs7-mime.

So my query is how to mention the content type(application/json) in this apple-app-site-association file???

please help me on this. i don't know what it mean exactly.

Answer1:

I just solved this issue myself. I had to logon to my server and go to the directory where the apple-app-site-association file was. In this directory, I had a .htaccess file which I modified to include the following lines:

<Files "apple-app-site-association"> ForceType 'application/json' </Files>

After doing this, the validation service stopped complaining about the Content-Type.

<strong>NOTES:</strong>

    <li>If you don't have a .htaccess file, you can just create one.</li> <li>I presume the .htaccess file should be in the root of your site directory (which is where you would most likely have placed your apple-app-site-association file.</li> </ul>

Recommend

  • Facebook SDK - Handling application invites?
  • twilio REST API: strictly backend?
  • How can I do a Query/Retrieve in JAVA?
  • Replace string without python re module?
  • Universal link - The domain has some validation issue
  • Is there a way to get the return value of a function and test it's “nonzero” at the same time?
  • Sphinx substitution with a container
  • JSeperator in JToolBar moves the components to right end
  • wxPython: binding wx.EVT_CHAR_HOOK disables TextCtrl backspace
  • Unable to use dot layout (graphviz as a library)
  • update record in database using jdatabase
  • Exposing an enum in a QML signal
  • Insert Statement
  • (Tcl/Expect) clear screen after exit
  • Scanner nextInt() and hasNextInt() problems
  • jQuery: How to AJAXify WordPress Search?
  • Trying to get the char code of ENTER key
  • saving file generated by TCPDF
  • How to view images from protected folder with php?
  • How can I enlarge video fullscreen without the affected interface project in as3?
  • How can the INSERT … ON CONFLICT (id) DO UPDATE… syntax be used with a sequence ID?
  • Textfile Structure (tables)
  • QLPreviewController hide print button in ios6
  • Python urlparse: small issue
  • FileReader+canvas image loading problem
  • Uncaught Error: Could not find module `ember-load-initializers`
  • DotNetZip - Calculate final zip size before calling Save(stream)
  • vba code to select only visible cells in specific column except heading
  • Why winpcap requires both .lib and .dll to run?
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • Run Powershell script from inside other Powershell script with dynamic redirection to file
  • VB.net deserialize, JSON Conversion from type 'Dictionary(Of String,Object)' to type '
  • Load html files in TinyMce
  • How can I get HTML syntax highlighting in my editor for CakePHP?
  • Free memory of cv::Mat loaded using FileStorage API
  • coudnt use logback because of log4j
  • How do I configure my settings file to work with unit tests?
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • python draw pie shapes with colour filled
  • Binding checkboxes to object values in AngularJs