Skip to content

Commit

Permalink
feat: Ajoute la config pour les "deepLinks" (iOS et Android) (#52)
Browse files Browse the repository at this point in the history
* feat: ajoute la config pour les deeplinks

* feat: redirige les erreurs 404 vers la home

* fix: deepLinks for iOS

* fix: deepLinks iOS (appID)

Co-authored-by: Benjamin Guedj <benjaminguedj@hotmail.fr>
  • Loading branch information
benguedj and Benjamin Guedj authored Jan 24, 2022
1 parent cc35df4 commit df483c8
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pages/404.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { useEffect } from "react";
import { useRouter } from "next/router";

export default function Custom404() {
const router = useRouter();

useEffect(() => {
router.replace("/");
});

return null;
}
9 changes: 9 additions & 0 deletions public/.well-known/apple-app-site-association
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"applinks": {
"apps": [],
"details": [{
"appID": "76GBKHVK25.com.fabrique.millejours",
"paths": ["/app-millejours"]
}]
}
}
11 changes: 11 additions & 0 deletions public/.well-known/assetlinks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.fabrique.millejours",
"sha256_cert_fingerprints":
["4C:3E:47:E2:DB:74:CC:99:77:9E:3E:3F:3C:3C:60:D2:62:65:70:8C:1D:B6:95:72:D5:FC:57:56:2E:7B:9F:3A"]
}
}
]

0 comments on commit df483c8

Please sign in to comment.