cordova.plugins.diagnostic 6.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/FUNDING.yml +6 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +123 -0
- package/.github/ISSUE_TEMPLATE/documentation-issue.md +36 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +41 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +37 -0
- package/.github/stale.yml +17 -0
- package/CHANGELOG.md +390 -0
- package/README.md +3709 -0
- package/cordova.plugins.diagnostic.d.ts +1113 -0
- package/package.json +54 -0
- package/plugin.xml +496 -0
- package/scripts/apply-modules.js +165 -0
- package/scripts/logger.js +94 -0
- package/src/android/Diagnostic.java +856 -0
- package/src/android/Diagnostic_Bluetooth.java +297 -0
- package/src/android/Diagnostic_Camera.java +134 -0
- package/src/android/Diagnostic_External_Storage.java +273 -0
- package/src/android/Diagnostic_Location.java +319 -0
- package/src/android/Diagnostic_NFC.java +270 -0
- package/src/android/Diagnostic_Notifications.java +157 -0
- package/src/android/Diagnostic_Wifi.java +155 -0
- package/src/ios/Diagnostic.h +56 -0
- package/src/ios/Diagnostic.m +282 -0
- package/src/ios/Diagnostic_Bluetooth.h +24 -0
- package/src/ios/Diagnostic_Bluetooth.m +170 -0
- package/src/ios/Diagnostic_Calendar.h +24 -0
- package/src/ios/Diagnostic_Calendar.m +94 -0
- package/src/ios/Diagnostic_Camera.h +27 -0
- package/src/ios/Diagnostic_Camera.m +194 -0
- package/src/ios/Diagnostic_Contacts.h +24 -0
- package/src/ios/Diagnostic_Contacts.m +93 -0
- package/src/ios/Diagnostic_Location.h +31 -0
- package/src/ios/Diagnostic_Location.m +284 -0
- package/src/ios/Diagnostic_Microphone.h +21 -0
- package/src/ios/Diagnostic_Microphone.m +97 -0
- package/src/ios/Diagnostic_Motion.h +27 -0
- package/src/ios/Diagnostic_Motion.m +143 -0
- package/src/ios/Diagnostic_Notifications.h +22 -0
- package/src/ios/Diagnostic_Notifications.m +235 -0
- package/src/ios/Diagnostic_Reminders.h +24 -0
- package/src/ios/Diagnostic_Reminders.m +93 -0
- package/src/ios/Diagnostic_Wifi.h +19 -0
- package/src/ios/Diagnostic_Wifi.m +108 -0
- package/src/windows/diagnosticProxy.bluetooth.js +23 -0
- package/src/windows/diagnosticProxy.camera.js +35 -0
- package/src/windows/diagnosticProxy.js +137 -0
- package/src/windows/diagnosticProxy.location.js +54 -0
- package/src/windows/diagnosticProxy.wifi.js +18 -0
- package/www/android/diagnostic.bluetooth.js +211 -0
- package/www/android/diagnostic.calendar.js +90 -0
- package/www/android/diagnostic.camera.js +203 -0
- package/www/android/diagnostic.contacts.js +91 -0
- package/www/android/diagnostic.external_storage.js +102 -0
- package/www/android/diagnostic.js +1309 -0
- package/www/android/diagnostic.location.js +282 -0
- package/www/android/diagnostic.microphone.js +89 -0
- package/www/android/diagnostic.nfc.js +127 -0
- package/www/android/diagnostic.notifications.js +74 -0
- package/www/android/diagnostic.wifi.js +90 -0
- package/www/ios/diagnostic.bluetooth.js +127 -0
- package/www/ios/diagnostic.calendar.js +97 -0
- package/www/ios/diagnostic.camera.js +212 -0
- package/www/ios/diagnostic.contacts.js +98 -0
- package/www/ios/diagnostic.js +990 -0
- package/www/ios/diagnostic.location.js +236 -0
- package/www/ios/diagnostic.microphone.js +99 -0
- package/www/ios/diagnostic.motion.js +160 -0
- package/www/ios/diagnostic.notifications.js +189 -0
- package/www/ios/diagnostic.reminders.js +97 -0
- package/www/ios/diagnostic.wifi.js +80 -0
- package/www/windows/diagnostic.bluetooth.js +51 -0
- package/www/windows/diagnostic.camera.js +41 -0
- package/www/windows/diagnostic.js +169 -0
- package/www/windows/diagnostic.location.js +35 -0
- package/www/windows/diagnostic.wifi.js +51 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Bug report
|
|
3
|
+
about: Report a problem
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<!--
|
|
11
|
+
IMPORTANT: PLEASE READ
|
|
12
|
+
|
|
13
|
+
WARNING: Failure to follow the issue template guidelines below will result in the issue being immediately closed.
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
<!-- Fill out the relevant sections below and delete irrelevant sections. -->
|
|
17
|
+
|
|
18
|
+
# Bug report
|
|
19
|
+
|
|
20
|
+
<!-- COMPLETE THIS CHECKLIST -->
|
|
21
|
+
**CHECKLIST**
|
|
22
|
+
- [ ] I have read the [issue reporting guidelines](https://github.com/dpa99c/cordova-diagnostic-plugin#reporting-issues)
|
|
23
|
+
|
|
24
|
+
- [ ] I confirm this is a suspected bug or issue that will affect other users
|
|
25
|
+
<!-- i.e. this is not a request for support in using/integrating the plugin into your specific project -->
|
|
26
|
+
|
|
27
|
+
- [ ] I have reproduced the issue using the [example project](https://github.com/dpa99c/cordova-diagnostic-plugin-example) or provided the necessary information to reproduce the issue.
|
|
28
|
+
<!-- necessary information e.g. exact steps, FCM notification message content, test case project repo -->
|
|
29
|
+
|
|
30
|
+
- [ ] I have read [the documentation](https://github.com/dpa99c/cordova-diagnostic-plugin) thoroughly and it does not help solve my issue.
|
|
31
|
+
<!-- e.g. if you're having a build issue ensure you've read through the build environment notes -->
|
|
32
|
+
|
|
33
|
+
- [ ] I have checked that no similar issues (open or closed) already exist.
|
|
34
|
+
<!-- Duplicates or near-duplicates will be closed immediately. -->
|
|
35
|
+
|
|
36
|
+
**Current behavior:**
|
|
37
|
+
|
|
38
|
+
<!-- Describe how the bug manifests. -->
|
|
39
|
+
|
|
40
|
+
<!-- Explain how you're sure there is an issue with this plugin rather than your own code:
|
|
41
|
+
- If this plugin has an example project, have you been able to reproduce the issue within it?
|
|
42
|
+
- Have you created a clean test Cordova project containing only this plugin to eliminate the potential for interference with other plugins/code?
|
|
43
|
+
-->
|
|
44
|
+
|
|
45
|
+
**Expected behavior:**
|
|
46
|
+
<!-- Describe what the behavior should be without the bug. -->
|
|
47
|
+
|
|
48
|
+
**Steps to reproduce:**
|
|
49
|
+
<!-- If you are able to illustrate the bug with an example, please provide steps to reproduce. -->
|
|
50
|
+
|
|
51
|
+
**Screenshots**
|
|
52
|
+
<!-- If applicable, add screenshots to help explain your problem. -->
|
|
53
|
+
|
|
54
|
+
**Environment information**
|
|
55
|
+
<!-- Please supply full details of your development environment including: -->
|
|
56
|
+
- Cordova CLI version
|
|
57
|
+
- `cordova -v`
|
|
58
|
+
- Cordova platform version
|
|
59
|
+
- `cordova platform ls`
|
|
60
|
+
- Plugins & versions installed in project (including this plugin)
|
|
61
|
+
- `cordova plugin ls`
|
|
62
|
+
- Dev machine OS and version, e.g.
|
|
63
|
+
- OSX
|
|
64
|
+
- `sw_vers`
|
|
65
|
+
- Windows 10
|
|
66
|
+
- `winver`
|
|
67
|
+
|
|
68
|
+
_Runtime issue_
|
|
69
|
+
- Device details
|
|
70
|
+
- _e.g. iPhone X, Samsung Galaxy S8, iPhone X Simulator, Pixel XL Emulator_
|
|
71
|
+
- OS details
|
|
72
|
+
- _e.g. iOS 12.2, Android 9.0_
|
|
73
|
+
|
|
74
|
+
_Android build issue:_
|
|
75
|
+
- Node JS version
|
|
76
|
+
- `node -v`
|
|
77
|
+
- Gradle version
|
|
78
|
+
- `ls platforms/android/.gradle`
|
|
79
|
+
- Target Android SDK version
|
|
80
|
+
- `android:targetSdkVersion` in `AndroidManifest.xml`
|
|
81
|
+
- Android SDK details
|
|
82
|
+
- `sdkmanager --list | sed -e '/Available Packages/q'`
|
|
83
|
+
|
|
84
|
+
_iOS build issue:_
|
|
85
|
+
- Node JS version
|
|
86
|
+
- `node -v`
|
|
87
|
+
- XCode version
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
**Related code:**
|
|
91
|
+
```
|
|
92
|
+
insert any relevant code here such as plugin API calls / input parameters
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
**Console output**
|
|
96
|
+
<details>
|
|
97
|
+
<summary>console output</summary>
|
|
98
|
+
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
// Paste any relevant JS/native console output here
|
|
102
|
+
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
</details><br/><br/>
|
|
106
|
+
|
|
107
|
+
**Other information:**
|
|
108
|
+
|
|
109
|
+
<!-- List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc. -->
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
<!--
|
|
116
|
+
A POLITE REMINDER
|
|
117
|
+
|
|
118
|
+
- This is free, open-source software.
|
|
119
|
+
- Although the author makes every effort to maintain it, no guarantees are made as to the quality or reliability, and reported issues will be addressed if and when the author has time.
|
|
120
|
+
- Help/support will not be given by the author, so forums (e.g. Ionic) or Stack Overflow should be used. Any issues requesting help/support will be closed immediately.
|
|
121
|
+
- If you have urgent need of a bug fix/feature, the author can be engaged for PAID contract work to do so: please contact dave@workingedge.co.uk
|
|
122
|
+
- Rude or abusive comments/issues will not be tolerated, nor will opening multiple issues if those previously closed are deemed unsuitable. Any of the above will result in you being BANNED from ALL of my Github repositories.
|
|
123
|
+
-->
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Documentation issue
|
|
3
|
+
about: Describe an issue with the documentation
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
<!--
|
|
10
|
+
WARNING: Failure to follow the issue template guidelines below will result in the issue being immediately closed.
|
|
11
|
+
|
|
12
|
+
Only documentation issues should be opened here.
|
|
13
|
+
|
|
14
|
+
Before opening an issue, please check a similar issue is not already open (or closed). Duplicates or near-duplicates will be closed immediately.
|
|
15
|
+
-->
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
# Documentation issue
|
|
19
|
+
<!--
|
|
20
|
+
Describe the issue with the documentation or the request for documentation changes.
|
|
21
|
+
- Please give reasons why the change is necessary.
|
|
22
|
+
- If the change is trivial or you are able to make it, please consider making a Pull Request containing the necessary changes.
|
|
23
|
+
-->
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
<!--
|
|
29
|
+
A POLITE REMINDER
|
|
30
|
+
|
|
31
|
+
- This is free, open-source software.
|
|
32
|
+
- Although the author makes every effort to maintain it, no guarantees are made as to the quality or reliability, and reported issues will be addressed if and when the author has time.
|
|
33
|
+
- Help/support will not be given by the author, so forums (e.g. Ionic) or Stack Overflow should be used. Any issues requesting help/support will be closed immediately.
|
|
34
|
+
- If you have urgent need of a bug fix/feature, the author can be engaged for PAID contract work to do so: please contact dave@workingedge.co.uk
|
|
35
|
+
- Rude or abusive comments/issues will not be tolerated, nor will opening multiple issues if those previously closed are deemed unsuitable. Any of the above will result in you being BANNED from ALL of my Github repositories.
|
|
36
|
+
-->
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Feature request
|
|
3
|
+
about: Suggest an idea for this project
|
|
4
|
+
title: ''
|
|
5
|
+
labels: ''
|
|
6
|
+
assignees: ''
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
<!--
|
|
10
|
+
WARNING: Failure to follow the issue template guidelines below will result in the issue being immediately closed.
|
|
11
|
+
|
|
12
|
+
Only feature requests should be opened here.
|
|
13
|
+
|
|
14
|
+
-->
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# Feature request
|
|
18
|
+
<!--
|
|
19
|
+
Feature requests should include as much detail as possible:
|
|
20
|
+
|
|
21
|
+
- A descriptive title
|
|
22
|
+
- A description of the problem you're trying to solve, including why you think this is a problem
|
|
23
|
+
- An overview of the suggested solution
|
|
24
|
+
- Use case: why should this be implemented?
|
|
25
|
+
- If the feature changes current behavior, reasons why your solution is better
|
|
26
|
+
- Relevant links, e.g.
|
|
27
|
+
- Stack Overflow post illustrating a solution
|
|
28
|
+
- Code within a Github repo that illustrates a solution
|
|
29
|
+
- Native API documentation for proposed feature
|
|
30
|
+
-->
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
<!--
|
|
34
|
+
A POLITE REMINDER
|
|
35
|
+
|
|
36
|
+
- This is free, open-source software.
|
|
37
|
+
- Although the author makes every effort to maintain it, no guarantees are made as to the quality or reliability, and reported issues will be addressed if and when the author has time.
|
|
38
|
+
- Help/support will not be given by the author, so forums (e.g. Ionic) or Stack Overflow should be used. Any issues requesting help/support will be closed immediately.
|
|
39
|
+
- If you have urgent need of a bug fix/feature, the author can be engaged for PAID contract work to do so: please contact dave@workingedge.co.uk
|
|
40
|
+
- Rude or abusive comments/issues will not be tolerated, nor will opening multiple issues if those previously closed are deemed unsuitable. Any of the above will result in you being BANNED from ALL of my Github repositories.
|
|
41
|
+
-->
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
## PR Type
|
|
2
|
+
What kind of change does this PR introduce?
|
|
3
|
+
|
|
4
|
+
<!-- Please check the one that applies to this PR using "x". -->
|
|
5
|
+
- [ ] Bugfix
|
|
6
|
+
- [ ] Feature
|
|
7
|
+
- [ ] Code style update (formatting, local variables)
|
|
8
|
+
- [ ] Refactoring (no functional changes, no api changes)
|
|
9
|
+
- [ ] Documentation changes
|
|
10
|
+
- [ ] Other... Please describe:
|
|
11
|
+
|
|
12
|
+
<!-- Fill out the relevant sections below and delete irrelevant sections. -->
|
|
13
|
+
|
|
14
|
+
## PR Checklist
|
|
15
|
+
For bug fixes / features, please check if your PR fulfills the following requirements:
|
|
16
|
+
|
|
17
|
+
- [ ] Testing has been carried out for the changes have been added
|
|
18
|
+
- [ ] Regression testing has been carried out for existing functionality
|
|
19
|
+
- [ ] Docs have been added / updated
|
|
20
|
+
|
|
21
|
+
## What is the purpose of this PR?
|
|
22
|
+
<!-- Describe any current behavior that you are modifying, or link to a relevant issue. -->
|
|
23
|
+
<!-- Describe the new behaviour added/modified and its purpose. -->
|
|
24
|
+
|
|
25
|
+
## Does this PR introduce a breaking change?
|
|
26
|
+
- [ ] Yes
|
|
27
|
+
- [ ] No
|
|
28
|
+
|
|
29
|
+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing plugin versions. -->
|
|
30
|
+
|
|
31
|
+
## What testing has been done on the changes in the PR?
|
|
32
|
+
<!-- e.g. if an example project exists for this plugin, has it been updated to test the new functionality? -->
|
|
33
|
+
|
|
34
|
+
## What testing has been done on existing functionality?
|
|
35
|
+
<!-- e.g. if an example project exists for this plugin, has been it been tested to ensure no regression bugs have been introduced? -->
|
|
36
|
+
|
|
37
|
+
## Other information
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Number of days of inactivity before an issue becomes stale
|
|
2
|
+
daysUntilStale: 60
|
|
3
|
+
# Number of days of inactivity before a stale issue is closed
|
|
4
|
+
daysUntilClose: 7
|
|
5
|
+
# Issues with these labels will never be considered stale
|
|
6
|
+
exemptLabels:
|
|
7
|
+
- pinned
|
|
8
|
+
- security
|
|
9
|
+
# Label to use when marking an issue as stale
|
|
10
|
+
staleLabel: wontfix
|
|
11
|
+
# Comment to post when marking an issue as stale. Set to `false` to disable
|
|
12
|
+
markComment: >
|
|
13
|
+
This issue has been automatically marked as stale because it has not had
|
|
14
|
+
recent activity. It will be closed if no further activity occurs. Thank you
|
|
15
|
+
for your contributions.
|
|
16
|
+
# Comment to post when closing a stale issue. Set to `false` to disable
|
|
17
|
+
closeComment: false
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
# CHANGELOG
|
|
2
|
+
|
|
3
|
+
**v6.0.4**
|
|
4
|
+
* (iOS) Add support for Provisional and Ephemeral notification permission statuses,
|
|
5
|
+
* Merged from PR [#437](https://github.com/dpa99c/cordova-diagnostic-plugin/pull/437)
|
|
6
|
+
* (Android) Add support for `ACTIVITY_RECOGNITION` runtime permission
|
|
7
|
+
* Merged from PR [#430](https://github.com/dpa99c/cordova-diagnostic-plugin/pull/430)
|
|
8
|
+
* (Android) Add `switchToNotifications()`
|
|
9
|
+
* Merged from PR [#434](https://github.com/dpa99c/cordova-diagnostic-plugin/pull/434)
|
|
10
|
+
* (Android): Add separate plugin variable for AndroidX appcompat vs legacy version and pin to exact version numbers.
|
|
11
|
+
* Resolves [#440](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/440).
|
|
12
|
+
* Based on PR [#441](https://github.com/dpa99c/cordova-diagnostic-plugin/pull/441).
|
|
13
|
+
|
|
14
|
+
**v6.0.3**
|
|
15
|
+
* (iOS) Update assertion to require `NSLocationAlwaysAndWhenInUseUsageDescription` instead of `NSLocationAlwaysUsageDescription` since the latter is deprecated since iOS 11.
|
|
16
|
+
* Fix docs referring to `NOT_REQUESTED` constant
|
|
17
|
+
* Merged from PR [#414](https://github.com/dpa99c/cordova-diagnostic-plugin/pull/414)
|
|
18
|
+
* (Android) Fix issues with background location permission when running on less than Android API 29 / 10.0.
|
|
19
|
+
* Resolves [#423](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/423).
|
|
20
|
+
|
|
21
|
+
**v6.0.2**
|
|
22
|
+
* (iOS) Update location accuracy authorization logic based on iOS 14 Beta 3.
|
|
23
|
+
* Relates to [#402](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/402).
|
|
24
|
+
|
|
25
|
+
**v6.0.1**
|
|
26
|
+
* (iOS, bug fix): Fix handling of conditional logic for iOS version in location module.
|
|
27
|
+
* Resolves [#406](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/406).
|
|
28
|
+
|
|
29
|
+
**v6.0.0**
|
|
30
|
+
* (iOS) Support new location accuracy authorization API on iOS 14+.
|
|
31
|
+
* Resolves [#402](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/402).
|
|
32
|
+
* (Android) *BREAKING CHANGE:* Migrate to AndroidX from Android Support Library
|
|
33
|
+
* The recommended Cordova Android platform version is now `cordova-android@9.0.0` (which includes AndroidX support).
|
|
34
|
+
* To use this plugin with `cordova-android@8`, install [cordova-plugin-androidx](https://github.com/dpa99c/cordova-plugin-androidx) and [cordova-plugin-androidx-adapter](https://github.com/dpa99c/cordova-plugin-androidx-adapter).
|
|
35
|
+
* (iOS) *BREAKING CHANGE:* Remove conditional code to support iOS <= 9
|
|
36
|
+
|
|
37
|
+
**v5.0.2**
|
|
38
|
+
* (Android) Add support for background location permission on Android 10 / API 29. Resolves [#398](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/398).
|
|
39
|
+
* (Doc) Add doc about `locationAuthorizationMode` constants
|
|
40
|
+
* (Doc) Fix error in `hasBluetoothSupport()` example
|
|
41
|
+
* (Doc) Fix `enableDebug()` for iOS note
|
|
42
|
+
* (iOS) Add return statement to getBackgroundRefreshStatus following handling of an exception raised when attempting to retrieve status. Resolves [#389](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/389).
|
|
43
|
+
* (iOS): If motion tracking is not available on the device, return "not available" when calling getMotionAuthorizationStatus(). Further resolves [#372](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/372).
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
**v5.0.1**
|
|
47
|
+
* Add types for various statuses constants (thanks to [@fcamblor](https://github.com/fcamblor))
|
|
48
|
+
* (iOS) Add placeholder `NSBluetoothAlwaysUsageDescription` to Bluetooth module.
|
|
49
|
+
* Resolves [#369](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/369).
|
|
50
|
+
* (iOS) Only initialise the native Bluetooth manager on calling a plugin API operation in the Bluetooth module.
|
|
51
|
+
* This is necessary because on iOS 13, since initialising the Bluetooth manager implicitly requests runtime access to Bluetooth, presenting the user with a permission dialog.
|
|
52
|
+
* Fixes [#365](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/365).
|
|
53
|
+
* (iOS): Fix setting/getting of persistent user settings so motion permission status is correctly determined. Fixes [#372](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/372).
|
|
54
|
+
|
|
55
|
+
**v5.0.0**
|
|
56
|
+
* BREAKING CHANGE - Align permission status constants between iOS and Android platforms. Resolves [#230](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/230).
|
|
57
|
+
|
|
58
|
+
**v4.0.12**
|
|
59
|
+
* Enable default version of Android Support Library to be overridden at plugin installation via ANDROID_SUPPORT_VERSION plugin variable. Resolves [#338](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/338).
|
|
60
|
+
* Bump default Android Support Library version to `28.+` to match `cordova-android@8.0.0`.
|
|
61
|
+
|
|
62
|
+
**v4.0.11**
|
|
63
|
+
* Bug fix: On Android, count number of available cameras in order to determine if camera is present (since FEATURE_CAMERA can't be relied upon). Resolves [#339](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/339).
|
|
64
|
+
|
|
65
|
+
**v4.0.10**
|
|
66
|
+
* Bug fix: return string instead of object to success function after requesting single runtime permission on Android. Fixes [#324](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/324).
|
|
67
|
+
|
|
68
|
+
**v4.0.9**
|
|
69
|
+
* Add minimum version restriction on Cordova CLI and platforms to prevent anomalous issues being reported due to outdated Cordova environment. Resolves [#323](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/323).
|
|
70
|
+
|
|
71
|
+
**v4.0.8**
|
|
72
|
+
* iOS build fix: Make static the definition of the diagnostic variable which references the Diagnostic singleton instance to prevent it leaking to global scope and causing duplicate symbol build errors. Fixes [#308](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/308).
|
|
73
|
+
* Fix typo which references wrong namespace. See [#306](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/306).
|
|
74
|
+
|
|
75
|
+
**v4.0.7**
|
|
76
|
+
Use native SharedPreferences to track request permissions (instead of HTML5 Local Storage) in order to avoid issues with Android Autobackup. Fixes [#304](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/304).
|
|
77
|
+
|
|
78
|
+
**v4.0.6**
|
|
79
|
+
* Remove obselete `windows-target-version` preference which is causing Window platform build failure. Fixes [#295](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/295).
|
|
80
|
+
* Add missing call to getMotionAuthorizationStatus() in iOS motion module.
|
|
81
|
+
|
|
82
|
+
**v4.0.5**
|
|
83
|
+
* Bug fix: ensure complete camera module inclusion and default Info.plist strings on iOS.
|
|
84
|
+
Merges [#292](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/292).
|
|
85
|
+
|
|
86
|
+
**v4.0.4**
|
|
87
|
+
* Ensure all Android code entry points are handled in try/catch blocks to prevent app crashes by unhandled exceptions.
|
|
88
|
+
* Enable the `types` parameter for `requestRemoteNotificationsAuthorization` to be omitted (rather than requiring empty object). Fixes [#286](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/286).
|
|
89
|
+
|
|
90
|
+
**v4.0.3**
|
|
91
|
+
* Remove literal angle brackets in comment attributes as they cause XML parse issue in Visual Studio. Fixes [#284](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/284).
|
|
92
|
+
|
|
93
|
+
**v4.0.2**
|
|
94
|
+
* Add `<uses-permission>` manifest entry for Bluetooth since registering broadcast receiver is now done at runtime. Fixes [#282](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/282)/[#283](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/283).
|
|
95
|
+
|
|
96
|
+
**v4.0.1**
|
|
97
|
+
* Register explicit broadcast receivers for location/Bluetooth/NFC state change listeners at run-time, due to [removal of support for implicit broadcast receivers in Android 8.0 (API 26)](https://developer.android.com/about/versions/oreo/background.html#broadcasts).
|
|
98
|
+
Fixes [#279](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/279).
|
|
99
|
+
|
|
100
|
+
**v4.0.0**
|
|
101
|
+
* Major rework of plugin code (both native and JS) into separate modules.
|
|
102
|
+
* Adds mechanism for including optional modules via config preference.
|
|
103
|
+
* Resolves [#181](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/181).
|
|
104
|
+
* Removed deprecated iOS method `requestAndCheckMotionAuthorization()`
|
|
105
|
+
|
|
106
|
+
**v3.9.2**
|
|
107
|
+
* Run iOS plugin initialisation on-load (rather than on-demand) to avoid race conditions when querying async native managers such as Bluetooth. Fixes [#271](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/271).
|
|
108
|
+
* Run all iOS native plugin commands on a background thread (other than those which call methods on `[UIApplication sharedApplication]` so must explicitly run on the main thread) to prevent THREAD WARNING messages in the console.
|
|
109
|
+
Fixes [#272](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/272).
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
**v3.9.1**
|
|
113
|
+
* Declare Objective-C constants as static. Fixes [#270](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/270).
|
|
114
|
+
|
|
115
|
+
**v3.9.0**
|
|
116
|
+
* Add `requestRemoteNotificationsAuthorization()` for iOS. Resolves [#269](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/269).
|
|
117
|
+
* Add `remoteNotificationType` constants for iOS to enumerate the various notification types when checking with `getRemoteNotificationsAuthorizationStatus()` or requesting with `requestRemoteNotificationsAuthorization()`.
|
|
118
|
+
* Minor refactor/code cleanup of native iOS implementation.
|
|
119
|
+
|
|
120
|
+
**v3.8.1**
|
|
121
|
+
* Use `if else` instead of `switch` on CPU arch strings for backward-compatibility to Java 6. [PR #263](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/263). Fixes [#264](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/264).
|
|
122
|
+
|
|
123
|
+
**v3.8.0**
|
|
124
|
+
* Add `enableDebug()` to Android and iOS which outputs native plugin debug messages to native and JS consoles.
|
|
125
|
+
* Add `restart()` to Android which warm/cold restarts the app.
|
|
126
|
+
* Add `getArchitecture()` to Android and iOS to return the CPU architecture of the current device.
|
|
127
|
+
|
|
128
|
+
**v3.7.3**
|
|
129
|
+
* Revert "add switchToLocationSettings to iOS" (PR [#223](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/223) / commit 74e1d97939a3f7d3d14424761100d4506b55afa6). Resolves [#262](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/262).
|
|
130
|
+
|
|
131
|
+
**v3.7.2**
|
|
132
|
+
* Fix Android build errors due to stricter checks on WifiManager reference. Fixes [#251](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/251).
|
|
133
|
+
|
|
134
|
+
**v3.7.1**
|
|
135
|
+
* Set Android Support Library version to v26.+. Fixes [#240](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/240) - again!
|
|
136
|
+
|
|
137
|
+
**v3.7.0**
|
|
138
|
+
* Adds `isADBmodeEnabled()` and `isDeviceRooted()` for Android (thanks to [wangjian2672](https://github.com/wangjian2672))
|
|
139
|
+
* Adds `isDataRoamingEnabled()` for Android (thanks to [dukhanov](https://github.com/dukhanov))
|
|
140
|
+
* Calls `isRegisteredForRemoteNotifications` on background thread for iOS 11. Fixes [#238](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/238).
|
|
141
|
+
* Rewrites Motion Tracking authorization for iOS to fix bugs and edge cases (see [#197](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/197)).
|
|
142
|
+
* Splits `requestAndCheckMotionAuthorization()` into `requestMotionAuthorization()` and `getMotionAuthorizationStatus()`.
|
|
143
|
+
* `getMotionAuthorizationStatus()` returns the current authorization status only and does not request permission if it has not already been requested.
|
|
144
|
+
* `requestMotionAuthorization()` should now only be called once when `motionStatus` is `NOT_REQUESTED`. Calling more than once will invoke the error callback.
|
|
145
|
+
* Adds `cordova.plugins.diagnostic.motionStatus` constants to full describe authorization states.
|
|
146
|
+
* Deprecates `requestAndCheckMotionAuthorization()`. Calling this will invoke `requestMotionAuthorization()` but also generate a console warning.
|
|
147
|
+
|
|
148
|
+
**v3.6.7**
|
|
149
|
+
* Adds `isRemoteNotificationsEnabled()` for Android (in addition to iOS).
|
|
150
|
+
* Adds `getRemoteNotificationsAuthorizationStatus()` for iOS 10+.
|
|
151
|
+
|
|
152
|
+
**v3.6.6**
|
|
153
|
+
Adds `switchToLocationSettings()` for iOS.
|
|
154
|
+
|
|
155
|
+
**v3.6.5**
|
|
156
|
+
Pin Android Compat and Support library deps to v25.+ to prevent unwanted v26 alpha/beta versions from being pulled in.
|
|
157
|
+
|
|
158
|
+
**v3.6.4**
|
|
159
|
+
Fix Android bug with legacy API signatures for Camera functions, where 3rd argument (`externalStorage`) is `false`.
|
|
160
|
+
|
|
161
|
+
**v3.6.3**
|
|
162
|
+
Fix iOS bug causing location state change handlers to erroneously trigger early. Fixes [#185](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/185) for iOS.
|
|
163
|
+
|
|
164
|
+
**v3.6.2**
|
|
165
|
+
Fix bug in mapping of legacy camera API function signatures for iOS and Windows.
|
|
166
|
+
|
|
167
|
+
**v3.6.1**
|
|
168
|
+
Fix bug in mapping of legacy camera API function signatures for Android.
|
|
169
|
+
|
|
170
|
+
**v3.6.0**
|
|
171
|
+
* Undeprecate legacy camera API and support multiple call signatures for camera API methods for the benefit of ionic-native wrapper.
|
|
172
|
+
|
|
173
|
+
**v3.5.0**
|
|
174
|
+
* Enable option to request/check only CAMERA permission on Android when using camera methods. Fixes [#178](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/178).
|
|
175
|
+
|
|
176
|
+
**v3.4.2**
|
|
177
|
+
* Check Android SDK version for attempting to check for Bluetooth LE Peripheral support
|
|
178
|
+
* Support isWifiEnabled on iOS
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
**v3.4.1**
|
|
182
|
+
* Add missing export. Fixes [#173](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/173)
|
|
183
|
+
* Add missing NFC state constant and cordova reference to typings
|
|
184
|
+
|
|
185
|
+
**v3.4.0**
|
|
186
|
+
* Add notes for Phonegap Build regarding setting latest CLI version and PGB example project. Clarifies [#168](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/168).
|
|
187
|
+
* customize to add api for requestExternalStorage permission for android
|
|
188
|
+
* Standardize and document Android external storage permissions convenience methods.
|
|
189
|
+
* Support for Android external SD card details
|
|
190
|
+
* Add NFC operations for Android to check for NFC hardware, if NFC is enabled and open NFC settings page
|
|
191
|
+
* Adds NFC state change monitoring.
|
|
192
|
+
|
|
193
|
+
**v3.3.3**
|
|
194
|
+
* Update docs regarding Android SDK component versions
|
|
195
|
+
|
|
196
|
+
**v3.3.2**
|
|
197
|
+
* Wrap motion handlers in try/catch to prevent unhandled errors causing native crash.
|
|
198
|
+
* Test for presence of CMPedometer.isPedometerEventTrackingAvailable() before attempting to call it, since it was only added in iOS 10 but CMPedometer was added in iOS 8.
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
**v3.3.1**
|
|
202
|
+
* Remove erroneous wrapping of iOS JS in require module (since Cordova does this dynamically)
|
|
203
|
+
|
|
204
|
+
**v3.3.0**
|
|
205
|
+
* Add type definitions and tests
|
|
206
|
+
* Add download and version badges
|
|
207
|
+
* Return current (rather than cached) Bluetooth state.
|
|
208
|
+
* Add requestBluetoothAuthorization() for iOS
|
|
209
|
+
* Add support for requesting and checking motion tracking authorization on iOS.
|
|
210
|
+
* Add notes indicating which functions require which usage descriptions for iOS.
|
|
211
|
+
* Document how to handle outcome of requesting Bluetooth authorization
|
|
212
|
+
|
|
213
|
+
**v3.2.2**
|
|
214
|
+
* Fix switchToSettings for iOS 9. Resolves [#127](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/127).
|
|
215
|
+
* Fix isRemoteNotificationsEnabled() and isRemoteNotificationsEnabled() for iOS 9. Resolves [#129](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/129).
|
|
216
|
+
|
|
217
|
+
**v3.2.1**
|
|
218
|
+
* Conditionally include UserNotifications framework only for iOS 10+ to prevent errors in older versions.
|
|
219
|
+
* Move imports to Diagnostic.h
|
|
220
|
+
* Use conditional compiler comments to wrap iOS 10-specific code to prevent compiler errors on XCode 7
|
|
221
|
+
* Add note on v3.2 build requirements. Resolves [#124](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/124).
|
|
222
|
+
* Fix erroneous early invocation of requestLocationAuthorization callback on iOS. Fixes [#123](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/123).
|
|
223
|
+
|
|
224
|
+
**v3.2.0**
|
|
225
|
+
* Add missing usage description for reminders (required by iOS 10).
|
|
226
|
+
* Add UserNotifications framework to enable diagnostics of remote (push) notifications on iOS 10.
|
|
227
|
+
* Rework remote notifications diagnostics to use new UserNotifications framework in iOS 10+. Fixes [#121](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/121).
|
|
228
|
+
* Rework sending of plugin results to factorise out common code.
|
|
229
|
+
* Add iOS-version conditionality to fix deprecation warnings in iOS 10.
|
|
230
|
+
|
|
231
|
+
**v3.1.7**
|
|
232
|
+
* Adds NSContactsUsageDescription (iOS10)
|
|
233
|
+
|
|
234
|
+
**v3.1.6**
|
|
235
|
+
* Add new iOS usage description keys, as now required by iOS 10 to prevent build rejection on submission to App Store. Fixes [#116](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/116).
|
|
236
|
+
|
|
237
|
+
**v3.1.5**
|
|
238
|
+
* Bug fix: getMicrophoneAuthorizationStatus() returns "granted" but the Diagnostic.permissionStatus.GRANTED constant is "authorized"
|
|
239
|
+
|
|
240
|
+
**v3.1.4**
|
|
241
|
+
* Add missing reference to Contacts framework for iOS. Resolves [#106](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/106).
|
|
242
|
+
* Add missing initialisation of contacts store (introduce by pull request [#98](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/98)). Fixes [#113](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/113).
|
|
243
|
+
* Enable de-registering of existing handler functions by passing an falsey value.
|
|
244
|
+
* Prevent multiple runtime permission requests on Android using a semaphore. Resolves [#99](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/99).
|
|
245
|
+
* Add functions to listen for completion of runtime permission requests and to indicate if a permission request is in progress.
|
|
246
|
+
|
|
247
|
+
**v3.1.3**
|
|
248
|
+
* Fixed iOS Warnings for deprecations
|
|
249
|
+
|
|
250
|
+
**v3.1.2**
|
|
251
|
+
* Unpin major version of Android support library to enable latest SDK version to be used. Resolves [#105](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/105).
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
**v3.1.1**
|
|
255
|
+
* Return current (rather than cached) state of Bluetooth adapter on Android. Fixes [#97](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/97).
|
|
256
|
+
* Add empty locationAuthorizationMode object to Android implementation. Resolves [#90](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/90).
|
|
257
|
+
* Add support for checking iOS background refresh authorization status. Resolves [#95](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/95)
|
|
258
|
+
|
|
259
|
+
**v3.1.0**
|
|
260
|
+
|
|
261
|
+
**NOTE:** This version contains backwardly-incompatible renaming of some functions. Either fix the version of the plugin in your config.xml to `cordova.plugins.diagnostic@3.0` or update your code to use the revised names below.
|
|
262
|
+
|
|
263
|
+
- Revised function names to logically separate those which check if device OS setting is enabled (`isSomethingEnabled()`) vs those which check if hardware/sensor is available for use by the app (device OS setting is enabled AND app has authorisation AND hardware is present - `isSomethingAvailable()`).
|
|
264
|
+
- Renamed `isLocationEnabled()` => `isLocationAvailable()` (Android, iOS and Windows 10 Mobile) - if location is available to app
|
|
265
|
+
- Renamed `isLocationEnabledSetting()` => `isLocationEnabled()` (iOS) - if device setting for location is enabled
|
|
266
|
+
- Added `isLocationEnabled()` (Android) - if device setting for location is enabled
|
|
267
|
+
- Renamed `isCameraEnabled()` => `isCameraAvailable()` (Android, iOS and Windows 10 Mobile) - if camera is available to app
|
|
268
|
+
- Renamed `isBluetoothEnabled()` => `isBluetoothAvailable()` (Android, iOS and Windows 10 Mobile) - if Bluetooth is available to app
|
|
269
|
+
- Added `isBluetoothEnabled()` (Android) - if the device setting for Bluetooth is enabled
|
|
270
|
+
- Renamed `isGpsLocationEnabled()` => `isGpsLocationAvailable()` (Android) - if GPS location is available to app
|
|
271
|
+
- Added `isGpsLocationEnabled()` (Android) - if device setting for GPS location is enabled
|
|
272
|
+
- Renamed `isNetworkLocationEnabled()` => `isNetworkLocationAvailable()` (Android) - if network location is available to app
|
|
273
|
+
- Added `isNetworkLocationEnabled()` (Android) - if device setting for network location is enabled
|
|
274
|
+
|
|
275
|
+
**v3.0.3**
|
|
276
|
+
|
|
277
|
+
- Fix for [#80](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/80), where change in Location Mode on Android would cause exception if plugin has not been initialised by a call from JS.
|
|
278
|
+
|
|
279
|
+
**v3.0.2**
|
|
280
|
+
|
|
281
|
+
- Updated plugin and documentation to explicitly support only Windows 10 Mobile (and not Windows Phone 8.x)
|
|
282
|
+
|
|
283
|
+
**v3.0.1**
|
|
284
|
+
|
|
285
|
+
- Fixed Android issues for apps not using Bluetooth state listening
|
|
286
|
+
|
|
287
|
+
**v3.0.0**
|
|
288
|
+
|
|
289
|
+
- Added permissions management for Contacts and Calendar to Android & iOS
|
|
290
|
+
- Added permissions management for Reminders to iOS
|
|
291
|
+
- Enable registration of listeners to be notified of location and Bluetooth state changes on Android and iOS
|
|
292
|
+
- Replace string literals returned with constants
|
|
293
|
+
|
|
294
|
+
*Backward-incompatibility with v2*
|
|
295
|
+
|
|
296
|
+
In order to make cross-platform use of the shared plugin functions easier, some **backwardly-incompatible changes** have been made to existing API functions.
|
|
297
|
+
|
|
298
|
+
To avoid breaking existing code which uses the old API syntax, you can continue to use the v2 API by specifying the plugin version when adding it: `cordova.plugins.diagnostic@2`
|
|
299
|
+
|
|
300
|
+
v3 contains the following backwardly-incompatible changes:
|
|
301
|
+
|
|
302
|
+
iOS:
|
|
303
|
+
|
|
304
|
+
- `requestCameraAuthorization()` and `requestMicrophoneAuthorization()`: success callback is now passed a {string} referencing the `permissionStatus` constants instead of a {boolean}
|
|
305
|
+
|
|
306
|
+
**v2.3.16**
|
|
307
|
+
|
|
308
|
+
- Update Android variant of camera authorization methods to request CAMERA permission in addition to READ_EXTERNAL_STORAGE. This is due to permission changes in cordova-plugin-camera@2.2.0.
|
|
309
|
+
|
|
310
|
+
**v2.3.15**
|
|
311
|
+
|
|
312
|
+
- Add checks for Bluetooth Low Energy (LE) and Bluetooth LE Peripheral Mode to Android
|
|
313
|
+
- Fix bug causing getMicrophoneAuthorizationStatus() to always return NOT_DETERMINED
|
|
314
|
+
|
|
315
|
+
**v2.3.14**
|
|
316
|
+
|
|
317
|
+
- Add support for checking and requesting microphone access to Android and iOS
|
|
318
|
+
- Document current quirks with requestCameraAuthorization() on Android.
|
|
319
|
+
|
|
320
|
+
**v2.3.13**
|
|
321
|
+
|
|
322
|
+
- Fix erroneous reference to invalidPermissions. Fixes [#42](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/42).
|
|
323
|
+
- Document deprecation of registerLocationAuthorizationStatusChangeHandler()
|
|
324
|
+
|
|
325
|
+
**v2.3.12**
|
|
326
|
+
|
|
327
|
+
- Simplify the handling of user response to location authorization request on iOS. Fixes [#35](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/35).
|
|
328
|
+
|
|
329
|
+
**v2.3.11**
|
|
330
|
+
|
|
331
|
+
- Callback to JS in WebView-agnostic way from iOS native
|
|
332
|
+
- Change so only one location permission type is needed more location to be authorized on Android
|
|
333
|
+
- Robustify check for UIApplicationOpenSettingsURLString. Fixes [#34](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/34).
|
|
334
|
+
- Update docs regarding requestLocationAuthorization on iOS vs Android. Improves [#35](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/35) but doesn't entirely fix it.
|
|
335
|
+
- Fixed requestCameraAuthorization returning DENIED_ALWAYS when access is granted on Android
|
|
336
|
+
|
|
337
|
+
**v2.3.10**
|
|
338
|
+
|
|
339
|
+
- Update documentation regarding Android API version and legacy API 22 branch
|
|
340
|
+
|
|
341
|
+
**v2.3.9**
|
|
342
|
+
|
|
343
|
+
- Ensure plugin methods return boolean true/false (not integer 0/1). Fixes [#28](https://github.com/dpa99c/cordova-diagnostic-plugin/issues/28).
|
|
344
|
+
|
|
345
|
+
**v2.3.0**
|
|
346
|
+
|
|
347
|
+
This version updates the plugin to support Android 6 (API 23) [runtime permissions](http://developer.android.com/training/permissions/requesting.html).
|
|
348
|
+
|
|
349
|
+
In order to do this it must depend on libraries only present in API 23+, so you __must build using Android SDK Platform v23 or above__. To do this you must have [Cordova Android platform](https://github.com/apache/cordova-android)@5.0.0 or above installed in your project. You can check the currently installed platform versions with the following command:
|
|
350
|
+
|
|
351
|
+
cordova platform ls
|
|
352
|
+
|
|
353
|
+
Currently the default version installed (if not specified) is cordova-android@4 which uses API 22, so you need to explicitly specify the version when adding the platform:
|
|
354
|
+
|
|
355
|
+
cordova platform add android@5.0.0
|
|
356
|
+
|
|
357
|
+
__Note:__ Attempting to build with API 22 or below will result in a build error.
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
You __must__ also make sure your build environment has the following Android libraries installed. In a local build environment, you'd install these via the Android SDK Manager:
|
|
361
|
+
|
|
362
|
+
- Android Support Library - Rev. 23 or above
|
|
363
|
+
- Android Support Repository - Rev. 23 or above
|
|
364
|
+
|
|
365
|
+
**v2.2.4**
|
|
366
|
+
* Added support for Windows 10 Mobile
|
|
367
|
+
|
|
368
|
+
**v2.2.2**
|
|
369
|
+
* Add getLocationMode() for Android
|
|
370
|
+
|
|
371
|
+
**v2.2.1**
|
|
372
|
+
* Note about Cordova Plugin Repo deprecation
|
|
373
|
+
|
|
374
|
+
**v2.2.0**
|
|
375
|
+
* Add bluetooth state change handlers
|
|
376
|
+
* Add documentation for new iOS functions
|
|
377
|
+
* Add functionality to request camera roll authorization on iOS.
|
|
378
|
+
|
|
379
|
+
**v2.1.0**
|
|
380
|
+
* Rework iOS location authorization to return authorization status
|
|
381
|
+
* Add iOS camera authorization functionality
|
|
382
|
+
|
|
383
|
+
**v1.1.1**
|
|
384
|
+
* Add switchToSettings() method for iOS
|
|
385
|
+
* Enable switching to settings screens on Android
|
|
386
|
+
* Split JS component into platform-specific versions
|
|
387
|
+
* Update documentation to clarify Android location state
|
|
388
|
+
* Added documentation for isBluetoothEnabled()
|
|
389
|
+
* Added isBluetoothEnabled() for iOS
|
|
390
|
+
* Add isBluetoothEnabled() for Android
|