You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Bas Bosman (JIRA)" <ji...@apache.org> on 2014/01/30 16:20:12 UTC

[jira] [Commented] (CB-635) Access application version information from JS.

    [ https://issues.apache.org/jira/browse/CB-635?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13886651#comment-13886651 ] 

Bas Bosman commented on CB-635:
-------------------------------

There is a plugin which already supports this for iOS and Android:
https://github.com/whiteoctober/cordova-plugin-app-version

> Access application version information from JS.
> -----------------------------------------------
>
>                 Key: CB-635
>                 URL: https://issues.apache.org/jira/browse/CB-635
>             Project: Apache Cordova
>          Issue Type: New Feature
>          Components: CordovaJS
>    Affects Versions: 1.7.0
>         Environment: Notably iOS/Android.
>            Reporter: Ladar Levison
>            Assignee: Braden Shepherdson
>              Labels: api-change, javascript, platform
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> It seems that every platform offers the ability to define an application version. iOS and Android offer string and numeric fields. They are versionName and versionCode on Android. 
> My request is to add the ability to access this app version info using Javascript. Perhaps adding an "app" namespace with app.versionName, app.versionCode and app.name...
> It would be an easy enough plugin to write, but figured it should eventually become part of the core.
> https://developer.android.com/guide/publishing/versioning.html



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)