chore: Configure iOS universal linking (#10651)

- Moved `apple-app-site-association` to
`.well-known/apple-app-site-association`
https://docs.expo.dev/linking/ios-universal-links/#create-aasa-file
- Updated the paths pattern to accept conversation links only.
This commit is contained in:
Muhsin Keloth
2025-01-08 21:25:11 +05:30
committed by GitHub
parent 25258417de
commit b5f4e8155b
3 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@
"details": [ "details": [
{ {
"appID": "<%= ENV['IOS_APP_ID'] %>", "appID": "<%= ENV['IOS_APP_ID'] %>",
"paths": [ "NOT /super_admin/*", "*" ] "paths": [ "/app/accounts/*/conversations/*"]
} }
] ]
} }

View File

@@ -461,8 +461,8 @@ Rails.application.routes.draw do
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# Routes for external service verifications # Routes for external service verifications
get 'apple-app-site-association' => 'apple_app#site_association'
get '.well-known/assetlinks.json' => 'android_app#assetlinks' get '.well-known/assetlinks.json' => 'android_app#assetlinks'
get '.well-known/apple-app-site-association' => 'apple_app#site_association'
get '.well-known/microsoft-identity-association.json' => 'microsoft#identity_association' get '.well-known/microsoft-identity-association.json' => 'microsoft#identity_association'
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------

View File

@@ -1,9 +1,9 @@
require 'rails_helper' require 'rails_helper'
describe '/apple-app-site-association', type: :request do describe '.well-known/apple-app-site-association', type: :request do
describe 'GET /apple-app-site-association' do describe 'GET /.well-known/apple-app-site-association' do
it 'renders the apple-app-site-association file' do it 'renders the apple-app-site-association file' do
get '/apple-app-site-association' get '/.well-known/apple-app-site-association'
expect(response).to have_http_status(:success) expect(response).to have_http_status(:success)
end end
end end