Skip to content

Commit 9587255

Browse files
committed
feat: add notifications when entering a new zone
1 parent b83492d commit 9587255

20 files changed

+823
-340
lines changed

.github/workflows/static.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
- run: |
2424
mkdir public
2525
cp src/js/data-layer/com_wiki.json public/com_wiki.json
26-
cp src/js/data-layer/immersvie-position-config.json public/immersvie-position-config.json
26+
cp src/js/data-layer/immersive-position-config.json public/immersive-position-config.json
27+
cp src/js/data-layer/immersive-position-config.json public/immersvie-position-config.json
2728
cp src/js/data-layer/code_cultu-caption.json public/code_cultu-caption.json
2829
cp src/js/data-layer/code_tfv-caption.json public/code_tfv-caption.json
2930
cp src/js/data-layer/base-layer-config.json public/base-layer-config.json

android/.idea/misc.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/app/capacitor.build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ android {
1010
apply from: "../capacitor-cordova-android-plugins/cordova.variables.gradle"
1111
dependencies {
1212
implementation project(':aashu-dubey-capacitor-statusbar-safe-area')
13+
implementation project(':capacitor-community-background-geolocation')
1314
implementation project(':capacitor-community-keep-awake')
1415
implementation project(':capacitor-app')
1516
implementation project(':capacitor-clipboard')
1617
implementation project(':capacitor-device')
1718
implementation project(':capacitor-filesystem')
1819
implementation project(':capacitor-geolocation')
1920
implementation project(':capacitor-keyboard')
21+
implementation project(':capacitor-local-notifications')
2022
implementation project(':capacitor-network')
2123
implementation project(':capacitor-preferences')
2224
implementation project(':capacitor-screen-orientation')

android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,6 @@
105105
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
106106
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
107107
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
108+
109+
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
108110
</manifest>

android/capacitor.settings.gradle

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ project(':capacitor-android').projectDir = new File('../node_modules/@capacitor/
55
include ':aashu-dubey-capacitor-statusbar-safe-area'
66
project(':aashu-dubey-capacitor-statusbar-safe-area').projectDir = new File('../node_modules/@aashu-dubey/capacitor-statusbar-safe-area/android')
77

8+
include ':capacitor-community-background-geolocation'
9+
project(':capacitor-community-background-geolocation').projectDir = new File('../node_modules/@capacitor-community/background-geolocation/android')
10+
811
include ':capacitor-community-keep-awake'
912
project(':capacitor-community-keep-awake').projectDir = new File('../node_modules/@capacitor-community/keep-awake/android')
1013

@@ -26,6 +29,9 @@ project(':capacitor-geolocation').projectDir = new File('../node_modules/@capaci
2629
include ':capacitor-keyboard'
2730
project(':capacitor-keyboard').projectDir = new File('../node_modules/@capacitor/keyboard/android')
2831

32+
include ':capacitor-local-notifications'
33+
project(':capacitor-local-notifications').projectDir = new File('../node_modules/@capacitor/local-notifications/android')
34+
2935
include ':capacitor-network'
3036
project(':capacitor-network').projectDir = new File('../node_modules/@capacitor/network/android')
3137

capacitor.config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
"spinnerColor": "#000000",
2626
"splashFullScreen": false,
2727
"splashImmersive": false
28+
},
29+
"CapacitorHttp": {
30+
"enabled": true
2831
}
2932
}
3033
}

ios/App/App/Info.plist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@
4848
<key>ITSAppUsesNonExemptEncryption</key><false/>
4949
<key>NSLocationWhenInUseUsageDescription</key>
5050
<string>Votre position est nécessaire pour vous positionner sur la carte et calculer des itinéraires et isochrones à partir de votre position</string>
51+
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
52+
<string>Si vous souhaitez recevoir des notifications lorsque vous arrivez dans un nouveau lieu, votre position en arrière-plan est nécessaire</string>
53+
<key>UIBackgroundModes</key>
54+
<array>
55+
<string>location</string>
56+
</array>
5157
<key>UIFileSharingEnabled</key>
5258
<true/>
5359
<key>LSSupportsOpeningDocumentsInPlace</key>

ios/App/Podfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ def capacitor_pods
1212
pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
1313
pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
1414
pod 'AashuDubeyCapacitorStatusbarSafeArea', :path => '../../node_modules/@aashu-dubey/capacitor-statusbar-safe-area'
15+
pod 'CapacitorCommunityBackgroundGeolocation', :path => '../../node_modules/@capacitor-community/background-geolocation'
1516
pod 'CapacitorCommunityKeepAwake', :path => '../../node_modules/@capacitor-community/keep-awake'
1617
pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app'
1718
pod 'CapacitorClipboard', :path => '../../node_modules/@capacitor/clipboard'
1819
pod 'CapacitorDevice', :path => '../../node_modules/@capacitor/device'
1920
pod 'CapacitorFilesystem', :path => '../../node_modules/@capacitor/filesystem'
2021
pod 'CapacitorGeolocation', :path => '../../node_modules/@capacitor/geolocation'
2122
pod 'CapacitorKeyboard', :path => '../../node_modules/@capacitor/keyboard'
23+
pod 'CapacitorLocalNotifications', :path => '../../node_modules/@capacitor/local-notifications'
2224
pod 'CapacitorNetwork', :path => '../../node_modules/@capacitor/network'
2325
pod 'CapacitorPreferences', :path => '../../node_modules/@capacitor/preferences'
2426
pod 'CapacitorScreenOrientation', :path => '../../node_modules/@capacitor/screen-orientation'

0 commit comments

Comments
 (0)