Comments (13)
You are building using Android API 22. Since support for Android runtime permissions was added, you must build using Android API 23
from cordova-diagnostic-plugin.
hi @dpa99c
thanks your reply
I will inform the PGB team
because for now the latest API is only 22....
from cordova-diagnostic-plugin.
I have already post a link under here
http://community.phonegap.com/nitobi/topics/the-android-sdk-api-should-be-update-from-22-to-23
from cordova-diagnostic-plugin.
I'll rename this issue to make it clear that it's a Phonegap Build issue and leave it open for reference.
In summary:
- Phonegap Build doesn't yet support API 23 which is required by this plugin for Android 6 runtime permissions
- Keep an eye on the Phonegap Build blog as to when they will release an update supporting it
- In the meantime, Phonegap Build users should use v2.3.0 the plugin, which will compile with API 22.
from cordova-diagnostic-plugin.
thanks @dpa99c reply
from cordova-diagnostic-plugin.
I've experienced that problem too, and here's the breakthrough I followed:
- Android API must actually be 23 and not 22
- I've noticed that for now, plugin implementation is quite different between github repo and directly with ionic plugin add, be careful if a method you need is not present, you must have to install plugin with the github repo url.
- If your app can't build, you might install a complementary package called "Android Support Repository" as indicated here: http://stackoverflow.com/questions/19621941/android-studio-could-not-find-any-version-that-matches-com-android-supportappco#_=_
In my case I hadd to edit AndroidManifest.xml manually, but you might try dpa99c's cordova-custom-config for more information.
from cordova-diagnostic-plugin.
@bill-rousseau Glad you got your problem solved
Android API must actually be 23 and not 22
I'm going to create a branch which contains all the code except Android 6 runtime permissions and hence remove dependency on API 23. That will fix (this issue) for Phonegap Build users until PGB moves to API 23 (currently on 22).
I've noticed that for now, plugin implementation is quite different between github repo and directly with ionic plugin add, be careful if a method you need is not present, you must have to install plugin with the github repo url.
This should not be the case. The current version on the master branch of the github repo is 2.3.8 which is the same version as published to npm. However, if you're using an old version of the Cordova/Ionic CLI, it will use the Cordova Plugin Registry instead of npm as it's plugin source, and hence would result in installing a much older version of the plugin. Check the CLI tools are up-to-date.
If your app can't build, you might install a complementary package called "Android Support Repository"
I will update the documentation to explictly state the need for "Android Support Repository" - currently in only specifies that "Android Support Library" must be installed.
from cordova-diagnostic-plugin.
I too have the same issue. Unable to set the target android version to 23. I am developing an ionic app using Visual studio 15.
from cordova-diagnostic-plugin.
There's now a branch of the plugin specifically for building against legacy API versions (22 and below): https://github.com/dpa99c/cordova-diagnostic-plugin/tree/api-22
Using this branch will resolve the Phonegap Build issue
from cordova-diagnostic-plugin.
hi @dpa99c
but for now
PGB only can use npm resource...
<gap:plugin name="pluginname" source="npm" version="XXX" />
from cordova-diagnostic-plugin.
@bau720123 doh, didn't realise that. Going to have to publish this branch to npm under a different plugin id then. Leaving it with me...
from cordova-diagnostic-plugin.
OKOK
thanks @dpa99c
you are awesome
from cordova-diagnostic-plugin.
Legacy version of the plugin is now published to npm under a different plugin ID - cordova.plugins.diagnostic.api-22
- so for PGB you should be able to use:
<gap:plugin name="cordova.plugins.diagnostic.api-22" source="npm" version="2.3.10-api-22" />
from cordova-diagnostic-plugin.
Related Issues (20)
- IOS - isCameraRollAuthorized return "[NSNull isEqualToString:]: unrecognized selector sent to instance" HOT 1
- When installing with lerna no dependency is added
- getBluetoothAuthorizationStatus wrong example HOT 2
- Workaround for Location Auth Status being DENIED_ALWAYS HOT 2
- isRequestingPermission() Always returns false for location
- Support Android 13/API 33 media storage permissions HOT 3
- Permission error HOT 1
- getExternalSdCardDetails for android 13 HOT 2
- No working POST_NOTIFICATIONS HOT 3
- getLocationAuthorizationStatus not working on android 13 with ionic cordova production builds HOT 1
- getBluetoothState() returns OK in SDK 33 even though bluetooth is not enabled/disabled HOT 1
- Android build Error HOT 2
- Storage permission Issue on Android after updating to API 33 HOT 2
- Android Permission for Notification asking in Runtime in Android 13 HOT 1
- cordova diagnostic plugin requestExternalStorageAuthorization is returning DENIES_ALWAYS HOT 1
- Android < 13 ACCESS_BACKGROUND_LOCATION is automatically granted despite it's not true HOT 1
- Specifying modules issue HOT 5
- USB debugging detection is bypassed using the FRIDA tool and some other Root management apps
- requestCalendarAuthorization() always returns DENIED_ALWAYS HOT 2
- Health Connect Authorization
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-diagnostic-plugin.