rareloop / cordova-plugin-app-version Goto Github PK
View Code? Open in Web Editor NEWAccess the native app version in JavaScript
License: MIT License
Access the native app version in JavaScript
License: MIT License
Appends "8" at the end of build number. version number shows perfect
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}
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;
I am using latest plugin with iOS 11 and I am not able to retrieve version info. Does this plugin support iOS11?
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?
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?
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
Kindly remove in header.
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?
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.