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

Craig Payne commented on CB-6118:
---------------------------------

The overview page for 3.5 states 3 classes of developer who should consider 
using Cordova.  I fall into the 3rd group "mixing native application components 
with a WebView (browser window) that can access device-level APIs".  To my 
mind, that implies asset delivery from some central location.

I would *prefer* to have a simple JavaScript file (served with the Assets) that 
would call into the Plugin's JavaScript (built into the Cordova app) and 
eventually native code, but I can't seem to get that to work reliably in 
Cordova 3.5.  The only way I've been able to get it to reliably work (on iOS) 
has been to include the cordova.js, cordova_plugin.js, and the plugin's "www" 
directory contents (JavaScript) in my Assets being served with the "page" to 
the app.  If I'm forced to continue that method, then I need a simple way to 
serve the correct assets, based on the platform the App is running on.

If there's a different bug that should be filed here, I'm happy to do that too.

> CLI should support installing a plugin on a per-platform basis
> --------------------------------------------------------------
>
>                 Key: CB-6118
>                 URL: https://issues.apache.org/jira/browse/CB-6118
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: CLI
>            Reporter: Andrew Grieve
>            Assignee: Mark Koudritsky
>
> There are several reasons why you would want to do this:
> * You want splashscreen on iOS, but not Android
> * You want a Play Services-based geolocation plugin on Android, and regular 
> Geolocation for iOS
> * You want InAppBrowser for iOS, but want to just use intents on Android
> * You many want an older version of File plugin on Android, but the latest on 
> on iOS
> Desired syntax:
> {code}
> cordova plugin add [email protected] --platform=ios
> cordova plugin rm org.apache.cordova.file --platform=ios --platform=android
> {code}
> Change to `cordova plugin ls`:
> {code}
> $ cordova plugin ls
> Plugins installed on Android:
>     [email protected]
>     [email protected]
> Plugins installed on iOS:
>     [email protected]
>     [email protected]
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to