[
https://issues.apache.org/jira/browse/CB-6118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14282597#comment-14282597
]
Andrew Grieve commented on CB-6118:
-----------------------------------
Another example of where per-platform plugins makes sense:
https://github.com/MobileChromeApps/mobile-chrome-apps/issues/509#issuecomment-70423165
You'd want chrome.gcm for Android, and chrome.pushMessaging for iOS.
> 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.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]