Conditional include of plugins

whats the recommended practice to programmatically make sure that the iOS version does not ship with a certain pluin though the android version definitely has to have it!

Is there a way to do this?

Use case:
Do not incude the useless backgroundMode plug in for iOS cause it is good only for android.

whats the recommended practice to programmatically make sure that the iOS version does not ship with it and therefore app-review team at apple won’t be able to use the excuse, sorry charlie but using this plugin is a cause for rejection.