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: docs/apis/geolocation.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,14 @@ Apple requires privacy descriptions to be specified in `Info.plist` for location
24
24
-`NSLocationAlwaysAndWhenInUseUsageDescription` (`Privacy - Location Always and When In Use Usage Description`)
25
25
-`NSLocationWhenInUseUsageDescription` (`Privacy - Location When In Use Usage Description`)
26
26
27
+
> [!NOTE]
28
+
> This Capacitor plugin does not support background geolocation directly. However, it relies on
29
+
> [`ion-ios-geolocation`](https://github.com/ionic-team/ion-ios-geolocation), which can report
30
+
> location in the background. As a result, Apple requires you to include a
31
+
> `NSLocationAlwaysAndWhenInUseUsageDescription` entry in your `Info.plist`. Since this permission
32
+
> prompt won’t appear to users, you can safely use the same description string as for
33
+
> `NSLocationWhenInUseUsageDescription`.
34
+
27
35
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
Copy file name to clipboardExpand all lines: docs/main/android/setting-target-sdk.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ slug: /android/setting-target-sdk
8
8
All Android applications must specify a target SDK version, or the version of Android that the application is designed to run on. Each year, Google releases updates to the Android operating system and subsequently bumps the version number that applications are required to target. Typically, [this date is August 31st](https://support.google.com/googleplay/android-developer/answer/11926878?hl=en) of each year. Because of this, it is important to keep your application up to date with the latest version of Android. In a Capacitor application, this is done by specifying your target SDK in the `/android/variables.gradle` file.
9
9
10
10
```groovy
11
-
targetSdkVersion = 34
11
+
targetSdkVersion = 35
12
12
```
13
13
14
14
## Capacitor Android Requirements
@@ -21,6 +21,7 @@ The following table shows the target SDK versions that are supported by Capacito
21
21
22
22
| Capacitor Android | Target SDK Version |
23
23
| ----------------- | ------------------ |
24
+
| 7.x | 35 |
24
25
| 6.x | 34 |
25
26
| 5.x | 33 |
26
27
| 4.x | 32 |
@@ -30,4 +31,4 @@ The following table shows the target SDK versions that are supported by Capacito
30
31
31
32
## Custom Target SDK Versions
32
33
33
-
Capacitor Android does not support custom target SDK versions. Each version of Capacitor Android requires a specific target SDK version and support is only provided for that matching version.
34
+
Capacitor Android does not support custom target SDK versions. Each version of Capacitor Android requires a specific target SDK version and support is only provided for that matching version.
If you installed CocoaPods with `sudo gem install cocoapods` and you're using an Apple Silicon-powered Mac, you might encounter something like this when running `npx cap update`:
74
-
75
-
```
76
-
[error] Analyzing dependencies
77
-
/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi/library.rb:275: [BUG] Bus Error at 0x0000000000000000
This is a CocoaPods bug related to `ffi` not installing on Apple Silicon computers.
82
-
We recommend using [Homebrew to install CocoaPods](/main/getting-started/environment-setup.md#homebrew).
83
-
Alternatively, if you have Rosetta installed, you can install `ffi` on a `x86_64` architecture and run `pod install` using the simulated Intel architecture for the first time.
84
-
85
-
```
86
-
$ sudo arch -x86_64 gem install ffi
87
-
$ arch -x86_64 pod install
88
-
```
66
+
Capacitor requires Android 6 as well as a WebView version of 60 or higher. If you create an Android 6 or 7 emulator for example, the newest version of the WebView won't be installed, and you'll get a blank white screen. To get around this, you can install a newer Android emulator for testing your application.
89
67
90
-
After that, running Capacitor should work as expected.
Copy file name to clipboardExpand all lines: docs/main/ios/spm.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,27 +124,29 @@ At this point you're done and can build and work as normal.
124
124
125
125
If your plugin only contains Swift aside from the required `[Name]Plugin.m` and `[Name]Plugin.h` you can use the [capacitor-plugin-converter](https://github.com/ionic-team/capacitor-plugin-converter).
126
126
127
-
This tool will add the following required things to your main swift plugin file, `[Name]Plugin.swift`:
128
-
129
-
- Add Conformance to the `CAPBridgedPlugin` protocol to your class
130
-
- Add 3 variables to your class. `identifier`, `jsName`, and `pluginMethods`
131
-
-`identifer` will correspond to the first argument to the `CAP_PLUGIN` macro
132
-
-`jsName` will correspond to the second argument to the `CAP_PLUGIN` macro
133
-
-`pluginMethods` will be an array of the methods passed to the `CAP_PLUGIN` macro
127
+
This tool will do the following changes:
128
+
129
+
- Add the following required things to your main swift plugin file, `[Name]Plugin.swift`:
130
+
- Add Conformance to the `CAPBridgedPlugin` protocol to your class.
131
+
- Add 3 variables to your class. `identifier`, `jsName`, and `pluginMethods`:
132
+
-`identifer` will correspond to the first argument to the `CAP_PLUGIN` macro.
133
+
-`jsName` will correspond to the second argument to the `CAP_PLUGIN` macro.
134
+
-`pluginMethods` will be an array of the methods passed to the `CAP_PLUGIN` macro.
135
+
- A `Package.swift` file will be created at the root of your plugin folder.
134
136
- The following files will be removed as they are no longer needed:
135
137
-`Plugin.xcodeproj`
136
138
-`Plugin.xcworkspace`
137
139
-`Plugin/Info.plist`
138
140
-`PluginTests/Info.plist`
139
141
-`Podfile`
140
-
- To fit SPM best practices, the Project files will be moved to `Sources` and `Tests` directories
141
-
- The plugins `package.json` will get the following fixes:
142
+
- To fit SPM best practices, the Project files will be moved to `Sources` and `Tests` directories.
143
+
- The plugins `package.json` will get the following changes:
142
144
- The files array will add these files or directories:
143
145
-`ios/Sources`
144
146
-`ios/Tests`
145
147
-`Package.swift`
146
148
-`verify:ios` will be changed to `xcodebuild -scheme YourPluginName -destination generic/platform=iOS` to allow it to continue to work as you expect.
147
-
- Your plugin podspec will be changed so that `s.source_files` now points to the `Sources` directory rather than the `Plugin` directory
149
+
- Your plugin podspec will be changed so that `s.source_files` now points to the `Sources` directory rather than the `Plugin` directory.
148
150
149
151
150
152
See the documentation in the repository at [capacitor-plugin-converter](https://github.com/ionic-team/capacitor-plugin-converter) for more.
Copy file name to clipboardExpand all lines: docs/main/ios/troubleshooting.md
-21Lines changed: 0 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,27 +67,6 @@ Xcode は時々、永遠にインデックス作成に行き詰まることが
67
67
68
68
唯一の解決策は、アクティビティモニタを使って Xcode を強制終了し、再度起動させることです。
69
69
70
-
## Apple Silicon: `ffi` Bus Error
71
-
72
-
If you installed CocoaPods with `sudo gem install cocoapods` and you're using an Apple Silicon-powered Mac, you might encounter something like this when running `npx cap update`:
73
-
74
-
```
75
-
[error] Analyzing dependencies
76
-
/Library/Ruby/Gems/2.6.0/gems/ffi-1.15.3/lib/ffi/library.rb:275: [BUG] Bus Error at 0x0000000000000000
This is a CocoaPods bug related to `ffi` not installing on Apple Silicon computers.
81
-
We recommend using [Homebrew to install CocoaPods](/main/getting-started/environment-setup.md#homebrew).
82
-
Alternatively, if you have Rosetta installed, you can install `ffi` on a `x86_64` architecture and run `pod install` using the simulated Intel architecture for the first time.
83
-
84
-
```
85
-
$ sudo arch -x86_64 gem install ffi
86
-
$ arch -x86_64 pod install
87
-
```
88
-
89
-
After that, running Capacitor should work as expected.
90
-
91
70
## CocoaPods: Failed to connect to GitHub
92
71
93
72
このエラーは、古いバージョンの openssl と ruby がインストールされた Mac で発生する可能性があります。
Capacitor has three officially supported application targets: Android, iOS, and Web. In order to create applications for all three platforms, you'll need to install all of the following dependencies. If you are not targeting one of the native mobile targets, you can skip the associated section.
10
10
11
-
:::info
12
-
Do you need to support Desktops? You can use Capacitor to build [Windows](https://ionic.io/docs/windows/usage) or [Electron](https://github.com/capacitor-community/electron) apps as well!
13
-
:::
14
-
15
11
## Core Requirements
16
12
17
13
In order to develop any application with Capacitor, you will need NodeJS 12 or higher installed. You can install Node by using the installer on [the Node website](https://nodejs.org), using [Volta](https://volta.sh/): a JavaScript tools manager, or installing it with a package manager like [homebrew](https://brew.sh/), or [Chocolatey](https://chocolatey.org/).
Capacitor has three officially supported application targets: Android, iOS, and Web. In order to create applications for all three platforms, you'll need to install all of the following dependencies. If you are not targeting one of the native mobile targets, you can skip the associated section.
10
10
11
-
:::info
12
-
Do you need to support Desktops? You can use Capacitor to build [Windows](https://ionic.io/docs/windows/usage) or [Electron](https://github.com/capacitor-community/electron) apps as well!
13
-
:::
14
-
15
11
## Core Requirements
16
12
17
13
In order to develop any application with Capacitor, you will need NodeJS 16 or higher installed. You can install Node by using the installer on [the Node website](https://nodejs.org), using [Volta](https://volta.sh/): a JavaScript tools manager, or installing it with a package manager like [homebrew](https://brew.sh/), or [Chocolatey](https://chocolatey.org/).
0 commit comments