incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Maj <...@adobe.com>
Subject Checking platform + version in cordova-js
Date Thu, 03 May 2012 17:50:27 GMT
https://issues.apache.org/jira/browse/CB-385

Wanted to solicit the list to get help on the issue. Just trying to
generate ideas.

The core problem: people not using the proper .js file on their platform,
I.e. Copying their entire www/ folder from their iOS app to their Android
app.

This issue proposes the idea of checking that the native platform the app
is running on matches the platform the .js file is built for.

The question is: how?

One idea: could do checking in the device module (the one that returns
device info) and compare against the platform id (from platform.js).
However, this relies on the web view <-> native bridge working, which
probably will not if the user is using the wrong .js file.





Mime
View raw message