Coder Social home page Coder Social logo

Comments (13)

dpa99c avatar dpa99c commented on June 4, 2024

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.

bau720123 avatar bau720123 commented on June 4, 2024

hi @dpa99c
thanks your reply
I will inform the PGB team
because for now the latest API is only 22....

from cordova-diagnostic-plugin.

bau720123 avatar bau720123 commented on June 4, 2024

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.

dpa99c avatar dpa99c commented on June 4, 2024

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.

bau720123 avatar bau720123 commented on June 4, 2024

thanks @dpa99c reply

from cordova-diagnostic-plugin.

bill-rousseau avatar bill-rousseau commented on June 4, 2024

I've experienced that problem too, and here's the breakthrough I followed:

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.

dpa99c avatar dpa99c commented on June 4, 2024

@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.

veernimbus avatar veernimbus commented on June 4, 2024

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.

dpa99c avatar dpa99c commented on June 4, 2024

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.

bau720123 avatar bau720123 commented on June 4, 2024

hi @dpa99c
but for now
PGB only can use npm resource...

<gap:plugin name="pluginname" source="npm" version="XXX" />

from cordova-diagnostic-plugin.

dpa99c avatar dpa99c commented on June 4, 2024

@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.

bau720123 avatar bau720123 commented on June 4, 2024

OKOK
thanks @dpa99c
you are awesome

from cordova-diagnostic-plugin.

dpa99c avatar dpa99c commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.