Different plugins for different OS

2 posts, 0 answers
  1. Ste
    Ste avatar
    11 posts
    Member since:
    May 2016

    Posted 01 Jun 2016 Link to this post

    we are using AppsFlyer plugin, whose latest version is compatible with Phonegap/Cordova >= 4.3.x.
    Unfortunately, as you know, currently in both Telerik's latest framework
    versions Cordova for iOS does not meet the minimum requirements for AppsFlyer:
    4.0.0 (Android 4.1.1, iOS 3.8.0 WP 3.8.0-2)
    5.0.0 (Android 5.1.0, iOS 4.0.1 WP 3.8.2) - Experimental

    I tried to use the previous AppsFlyer version, built against Phonegap/Cordova >= 3.0.3, but it doesn't build on Android for some reason (it does on iOS).

    Would it be possible to use two different versions of the AppsFlyer plugin, one when building on Android and another one for building on iOS?
    How can I set up that?


  2. Kaloyan
    Kaloyan avatar
    878 posts

    Posted 06 Jun 2016 Link to this post

    Hi Ste,

    I checked the AppsFly plugin and it seems that its latest version refers to a Cordova engine > 4.3 which is expected to break the iOS build as Cordova for iOS 4.3 is still not released (you can further check this here).

    Additionally, you can also see what the engine tag does, here.

    This said, I believe that the plugin needs to be refactored and this line changed to:
        <engine name="cordova-android" version=">=4.3.0"/>
        <engine name="cordova-ios" version=">=4.0.1"/>

    I hope this helps.


    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

Back to Top