You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,18 @@ If you will be making use of Geolocation or Push Notifications, enable `Location
23
23
24
24

25
25
26
+
You will also need to add the following entry into your `Info.plist` file:
27
+
```
28
+
<key>BGTaskSchedulerPermittedIdentifiers</key>
29
+
<array>
30
+
<string>com.example.background.task</string>
31
+
</array>
32
+
```
33
+
34
+
Read about [Configuring `Info.plist`](https://capacitorjs.com/docs/ios/configuration#configuring-infoplist) in the [iOS Guide](https://capacitorjs.com/docs/ios) for more information on setting iOS permissions in Xcode.
35
+
36
+
Make sure you use the same id that you use for `BGTaskSchedulerPermittedIdentifiers` (for example "com.example.background.task") in the `label` field in the plugin configuration.
37
+
26
38
After enabling the Background Modes capability, add the following to your app's `AppDelegate.swift`:
27
39
28
40
At the top of the file, under `import Capacitor` add:
@@ -65,8 +77,6 @@ Apple requires privacy descriptions to be specified in `Info.plist` for location
-`NSLocationWhenInUseUsageDescription` (`Privacy - Location When In Use Usage Description`)
67
79
68
-
Read about [Configuring `Info.plist`](https://capacitorjs.com/docs/ios/configuration#configuring-infoplist) in the [iOS Guide](https://capacitorjs.com/docs/ios) for more information on setting iOS permissions in Xcode
69
-
70
80
## Android
71
81
72
82
Insert the following line to `android/app/build.gradle`:
Copy file name to clipboardExpand all lines: packages/capacitor-plugin/README.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,18 @@ If you will be making use of Geolocation or Push Notifications, enable `Location
23
23
24
24

25
25
26
+
You will also need to add the following entry into your `Info.plist` file:
27
+
```
28
+
<key>BGTaskSchedulerPermittedIdentifiers</key>
29
+
<array>
30
+
<string>com.example.background.task</string>
31
+
</array>
32
+
```
33
+
34
+
Read about [Configuring `Info.plist`](https://capacitorjs.com/docs/ios/configuration#configuring-infoplist) in the [iOS Guide](https://capacitorjs.com/docs/ios) for more information on setting iOS permissions in Xcode.
35
+
36
+
Make sure you use the same id that you use for `BGTaskSchedulerPermittedIdentifiers` (for example "com.example.background.task") in the `label` field in the plugin configuration.
37
+
26
38
After enabling the Background Modes capability, add the following to your app's `AppDelegate.swift`:
27
39
28
40
At the top of the file, under `import Capacitor` add:
@@ -65,8 +77,6 @@ Apple requires privacy descriptions to be specified in `Info.plist` for location
-`NSLocationWhenInUseUsageDescription` (`Privacy - Location When In Use Usage Description`)
67
79
68
-
Read about [Configuring `Info.plist`](https://capacitorjs.com/docs/ios/configuration#configuring-infoplist) in the [iOS Guide](https://capacitorjs.com/docs/ios) for more information on setting iOS permissions in Xcode
69
-
70
80
## Android
71
81
72
82
Insert the following line to `android/app/build.gradle`:
0 commit comments