Ajoute le plugin natif capacitor-native-settings@8.1.0 qui permet d'ouvrir directement la page Localisation dans Réglages iPhone via UIApplication.shared.open() (API officielle Apple). Cas d'usage : depuis /settings → Météo → bouton 'Gérer la permission iOS' → ouvre Réglages → Confidentialité → Localisation → Coach Hypnotruck. C'est ce qu'utilisent Strava, Komoot, Uber, etc. Sync ios/App/CapApp-SPM/Package.swift via npx cap sync ios — le plugin est maintenant inclus dans le build iOS. ⚠️ Requiert rebuild TestFlight v1.2 : cd /Users/sylvainbettinelli/Documents/coach-ios/ios/App pod install (ou via Xcode si SPM) Xcode → Product → Archive → upload TestFlight Côté webapp, le bouton tombera en fallback (instructions texte) tant que la nouvelle build TestFlight n'est pas installée. Le code détecte window.Capacitor.Plugins.NativeSettings et bascule selon dispo. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
36 lines
1.1 KiB
JSON
36 lines
1.1 KiB
JSON
{
|
|
"name": "coach-mobile",
|
|
"version": "0.1.0",
|
|
"description": "Coach Hypnotruck — wrapper Capacitor (iOS + Android) de coach.hypnotruck.ch",
|
|
"private": true,
|
|
"scripts": {
|
|
"sync": "cap sync",
|
|
"sync:ios": "cap sync ios",
|
|
"sync:android": "cap sync android",
|
|
"open:ios": "cap open ios",
|
|
"open:android": "cap open android",
|
|
"build:ios": "cap sync ios && cap open ios",
|
|
"build:android": "cap sync android && cap open android"
|
|
},
|
|
"author": "Sylvain Bettinelli",
|
|
"license": "UNLICENSED",
|
|
"dependencies": {
|
|
"@capacitor/android": "^8.3.1",
|
|
"@capacitor/app": "^8.1.0",
|
|
"@capacitor/core": "^8.3.1",
|
|
"@capacitor/geolocation": "^8.2.0",
|
|
"@capacitor/haptics": "^8.0.2",
|
|
"@capacitor/ios": "^8.3.1",
|
|
"@capacitor/local-notifications": "^8.0.2",
|
|
"@capacitor/push-notifications": "^8.0.3",
|
|
"@capacitor/splash-screen": "^8.0.1",
|
|
"@capacitor/status-bar": "^8.0.2",
|
|
"@capgo/capacitor-health": "^8.4.9",
|
|
"capacitor-native-settings": "^8.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@capacitor/assets": "^3.0.5",
|
|
"@capacitor/cli": "^8.3.1"
|
|
}
|
|
}
|