Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Ajoute la config pour les "deepLinks" (iOS et Android) #52

Merged
merged 4 commits into from
Jan 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

La page a prévu d'être un peu customisée par la suite ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

En fait c'est dans le cas où lorsque l'on partage un article et que la personne n'a pas l'app qu'elle soit redirigé vers la page d'accueil comme ça il y a les boutons pour télécharger l'app (car le lien que l'on partage ne pointe vers aucune page du site en tout cas pour le moment).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, ca marche

}
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"]
}
}
]