2020-12-02 05:37 阅读 5

BUG: Native Flurry not working: plugin is not installed

All Flurry calls fail with message similar to this, on device (ionic run android): "Native: tried calling FlurryAnalyticsPlugin.init, but the FlurryAnalyticsPlugin plugin is not installed."

All calls are wrapped with Platform.ready().

Here is my environment: Cordova CLI: 6.5.0 Ionic Framework Version: 3.1.0 Ionic CLI Version: 2.1.18 Ionic App Lib Version: 2.1.9 Ionic App Scripts Version: 1.3.4 ios-deploy version: Not installed ios-sim version: Not installed OS: macOS Sierra Node Version: v7.8.0 Xcode version: Xcode 8.1 Build version 8B62

And the plug-in is installed. [ionic plugin list] ... cordova-plugin-flurry-analytics 1.2.1 "Flurry Analytics" ...

Please help!


  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

9条回答 默认 最新

  • weixin_39966130 weixin_39966130 2020-12-02 05:37

    I have the same issue! Do you find a fix please?

    点赞 评论 复制链接分享
  • weixin_39689819 weixin_39689819 2020-12-02 05:37

    I'd still like to see Ionic Native team fix this, because Flurry is the most popular stats tool for Mobile development. It'd be a shame that Flurry does not work on Ionic.

    My non-ideal work-around is to use the cordova plugin directly, via Javascripts. Please let me know if you need a code example.

    点赞 评论 复制链接分享
  • weixin_39966130 weixin_39966130 2020-12-02 05:37

    Hi thanks for you answer! Can you send me an exemple please? I'm stuck because Google analytics is not working too, the app can't build for android.

    点赞 评论 复制链接分享
  • weixin_39597987 weixin_39597987 2020-12-02 05:37

    I also have this issue on the Diagnostic plugin, so it's clearly something more fundamental:

    Native: tried calling Diagnostic.isRemindersAuthorized, but the Diagnostic plugin is not installed.
    Install the Diagnostic plugin: 'ionic plugin add cordova.plugins.diagnostic'
    点赞 评论 复制链接分享
  • weixin_39559333 weixin_39559333 2020-12-02 05:37

    +1 And in the plugin BackgroundMode.

    点赞 评论 复制链接分享
  • weixin_39689819 weixin_39689819 2020-12-02 05:37

    Here is my WORK-AROUND sample code, hope it helps

    declare var FlurryAnalytics;
    export class StatsService {
      flurry: any;
      constructor(...) {
        // create a new instance
        this.flurry = new FlurryAnalytics({
            // requried
            appKey: <your api key here>,
            // optional
            reportSessionsOnClose: true,
            enableLogging: true
      track(eventName:string, eventProperties?:{}) {
        if (this.platform.is('cordova')) {
          // this.flurry.logEvent(eventName, eventProperties);
          this.flurry && this.flurry.logEvent(eventName, eventProperties, function() {
              // console.log('Flurry logged event');
          }, function(err) {
              console.error(['Flurry failed: ', err]);
    点赞 评论 复制链接分享
  • weixin_39966130 weixin_39966130 2020-12-02 05:37

    Thanks I did the same work-around with window.plugins.FlurryAnalytics... Hope they will fix that quickly because this work-around cause a performance issue.

    点赞 评论 复制链接分享
  • weixin_39754267 weixin_39754267 2020-12-02 05:37

    The wrapper was written incorrectly. It is now fixed in 3.7.0.

    Please update to latest -native/flurry-analytics and follow the documentation here (until the official docs are updated): http://ionic-site-staging.herokuapp.com/docs/native/flurry-analytics/

    点赞 评论 复制链接分享
  • weixin_39689819 weixin_39689819 2020-12-02 05:37

    Thank you

    点赞 评论 复制链接分享