Code Monkey home page Code Monkey logo

cordova-plugin-app-version's People

Contributors

joelambert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cordova-plugin-app-version's Issues

iOS location issue on uploading the apptore - ask for NSLocationAlwaysUsageDescription

Hi,
I got the following message from apple once I uploaded the app to the app store.

Missing Purpose String in Info.plist File - Your app's code references one or more APIs that access sensitive user data. The app's Info.plist file should contain a NSLocationAlwaysUsageDescription key with a user-facing purpose string explaining clearly and completely why your app needs the data. Starting Spring 2019, all apps submitted to the App Store that access user data will be required to include a purpose string. If you're using external libraries or SDKs, they may reference APIs that require a purpose string. While your app might not use these APIs, a purpose string is still required. You can contact the developer of the library or SDK and request they release a version of their code that doesn't contain the APIs. Learn more (https://developer.apple.com/documentation/uikit/core_app/protecting_the_user_s_privacy).Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):

Does your plugin use the device location / uses an API that uses the device location?

Reproduction

I don't get any error once I build and run the app in debug/release mode.
only got the above mail from apple once I uploaded the app store

Additional Information

  • cordova-plugin-app-version version: 0.1.9
  • List of installed plugins:
    code-push 2.0.6 "CodePushAcquisition"
    com.elasticode.cordova 2.1.7 "Elasticode Cordova Plugin"
    com.etoro.chinaupdateplugin 13.0.0 "ChinaUpdatePlugin"
    cordova-android-support-gradle-release 2.0.1 "cordova-android-support-gradle-release"
    cordova-custom-config 5.0.2 "cordova-custom-config"
    cordova-plugin-app-version 0.1.9 "AppVersion"
    cordova-plugin-appsflyer-sdk 4.4.15 "AppsFlyer"
    cordova-plugin-code-push 1.11.13 "CodePush"
    cordova-plugin-customurlscheme 4.3.0 "Custom URL scheme"
    cordova-plugin-device 2.0.2 "Device"
    cordova-plugin-dialogs 2.0.1 "Notification"
    cordova-plugin-enable-multidex 0.1.3 "Enable Multidex"
    cordova-plugin-facebook4 4.2.1 "Facebook Connect"
    cordova-plugin-file 6.0.1 "File"
    cordova-plugin-file-transfer 1.7.1 "File Transfer"
    cordova-plugin-googleplus 5.3.2 "Google SignIn"
    cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
    cordova-plugin-intercom 6.2.0 "Intercom"
    cordova-plugin-network-information 2.0.2-dev "Network Information"
    cordova-plugin-splashscreen 5.0.2 "Splashscreen"
    cordova-plugin-statusbar 2.4.2 "StatusBar"
    cordova-plugin-wechat 2.6.0 "Wechat"
    cordova-plugin-whitelist 1.3.3 "Whitelist"
    cordova-plugin-zip 3.1.0 "cordova-plugin-zip"
    cordova-universal-links-plugin 1.2.1 "Universal Links Plugin"
    ionic-plugin-keyboard 2.2.1 "Keyboard"
    org.apache.cordova.inappbrowser 0.2.2 "InAppBrowser"
    phonegap-plugin-mobile-accessibility 1.0.4 "Mobile Accessibility"
    urbanairship-cordova 7.3.0 "Urban Airship
  • Cordova version: 7.0.0
  • iOS/Android/Windows version: 12
  • Does this reproduce on a debug build or release build? NO
  • Does this reproduce on a simulator, or only on a physical device? NO

This plugin has issues with removal

I tried using this plugin and found it to be a little twitchy - after I removed it from the project via cordova plugin remove the config settings remained throughout the project. I thought it was a removal glitch - but now every time I add a plugin it's config options are reinjected into the xml conf files resulting in this error in phonegap:

Uncaught Error: Module cordova-plugin-appversion.RareloopAppVersion does not exist.(โ€ฆ)

Any ideas?

Add a dummy for Browser

Hi, it would be helpful if you added a blank dummy for cordova Browser so that it will not result in an error when testing. It can just return null or undefined. Thanks for considering this request.

Uncaught ReferenceError: AppVersion is not defined

cordova 8.1.2 ([email protected])
android 7.1.4
browser 5.0.4
even after Device ready getting error

12-31 10:01:54.211 19912-19912/com.checkmydeal.cmd D/SystemWebChromeClient: file:///android_asset/www/assets/custom/js/pages.js: Line 246 : Uncaught ReferenceError: AppVersion is not defined
12-31 10:01:54.211 19912-19912/com.checkmydeal.cmd I/chromium: [INFO:CONSOLE(246)] "Uncaught ReferenceError: AppVersion is not defined", source: file:///android_asset/www/assets/custom/js/pages.js (246)

My Code

var vcode = AppVersion.build;
var vname = AppVersion.version;

Feature request - Include package id

I have two very similar apps talking to the same server. Sometimes they are at the same version number.
It would be really helpful if the reverse-URL package id was included in the data returned by your plugin.

e.g. {packid:com.example.myapp,version:1.2.3,build:10203}

AppVersion.build on iOS needs to be a string

I've been playing around with cordova-plugin-app-version for a bit, and noticed some strange behavior on iOS.

iOS uses two string values to indicate the version:

It looks like the file app-version.js is trying to parse the latter value as an integer value:

            _this.build = parseInt(info.build, 10);

Which is causing some weird return values.

Not sure what the proper fix is here, since Android's VersionCode is an integer. Maybe splitting this API into two, an integer for Android and a string for iOS?

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.