You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "Danz He (JIRA)" <ji...@apache.org> on 2017/06/21 07:38:01 UTC

[jira] [Updated] (WEEX-49) add osName to weex.config.env

     [ https://issues.apache.org/jira/browse/WEEX-49?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Danz He updated WEEX-49:
------------------------
    Description: 
Since the *weex.config.env.platform* on web has tell user that the environment is 'Web', there should be another property to tell which system (Android or iOS) it is on. So a *weex.config.env.osName* is needed. On Android and iOS platform, the platform name and the osName is the same, however  on Web platform (webview or mobile browsers), they are different.

For example, a weex page runing in a chrome browser on a Android device with weex-vue-render. access the two properties will be:

* weex.config.env.platform: 'Web'
* weex.config.env.osName: 'Android'

doc: http://weex.apache.org/references/weex-variable.html




  was:
Since the *weex.config.env.platform* on web has tell user that the environment is 'Web', there should be another property to tell which system (Android or iOS) it is on. So a weex.config.env.osName is needed. On Android and iOS platform, the platform name and the osName is the same, however  on Web platform (webview or mobile browsers), they are different.

For example, a weex page runing in a chrome browser on a Android device with weex-vue-render. access the two properties will be:

* weex.config.env.platform: 'Web'
* weex.config.env.osName: 'Android'

doc: http://weex.apache.org/references/weex-variable.html





> add osName to weex.config.env
> -----------------------------
>
>                 Key: WEEX-49
>                 URL: https://issues.apache.org/jira/browse/WEEX-49
>             Project: Weex
>          Issue Type: Improvement
>          Components: Project 
>    Affects Versions: 0.15
>            Reporter: Danz He
>            Assignee: sospartan
>
> Since the *weex.config.env.platform* on web has tell user that the environment is 'Web', there should be another property to tell which system (Android or iOS) it is on. So a *weex.config.env.osName* is needed. On Android and iOS platform, the platform name and the osName is the same, however  on Web platform (webview or mobile browsers), they are different.
> For example, a weex page runing in a chrome browser on a Android device with weex-vue-render. access the two properties will be:
> * weex.config.env.platform: 'Web'
> * weex.config.env.osName: 'Android'
> doc: http://weex.apache.org/references/weex-variable.html



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)