mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 11:37:58 +00:00
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:
@@ -4,7 +4,7 @@
|
||||
"details": [
|
||||
{
|
||||
"appID": "<%= ENV['IOS_APP_ID'] %>",
|
||||
"paths": [ "NOT /super_admin/*", "*" ]
|
||||
"paths": [ "/app/accounts/*/conversations/*"]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -461,8 +461,8 @@ Rails.application.routes.draw do
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# 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/apple-app-site-association' => 'apple_app#site_association'
|
||||
get '.well-known/microsoft-identity-association.json' => 'microsoft#identity_association'
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
require 'rails_helper'
|
||||
|
||||
describe '/apple-app-site-association', type: :request do
|
||||
describe 'GET /apple-app-site-association' do
|
||||
describe '.well-known/apple-app-site-association', type: :request do
|
||||
describe 'GET /.well-known/apple-app-site-association' 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)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user