1

i'm trying to integrate hockeyapp as a module like in this topic : How to integrate hockey App with Hybrid mobile app

But i'm unable to make it work. I've added the cordova plugin https://github.com/peutetre/cordova-plugin-hockeyapp. it seem successfully integrated (when i'm building the app, the source are present), but i'm unable to use it.

I'm a beginner with ionic, i've tried different thing, but none worked.

the last i've tried it to make a module like this :

    angular.module('ngHockeyApp', [])

.factory('hockeyapp', function ($q, $window) {

    function start(success, failure, appid) {
        console.log('start');
        var deferred = $q.defer();
        cordova.exec(success, failure, "HockeyApp", "start", [ appid ]);
        return deferred.promise;
    }

    ...

    return {
        start: start,
        feedback: feedback,
        forceCrash: forceCrash,
        checkForUpdate: checkForUpdate
    };

});

in this case, the problem is that it cannot resolve cordova, so it cant make call to native code.

Anyone having integrated HockeyApp in ionic can help?

Thanks

Community
  • 1
  • 1
lolitar
  • 55
  • 6

1 Answers1

1

HockeyApp does not have an official integration with Ionic, but the answer in this thread might help: How to integrate hockey App with Hybrid mobile app

Community
  • 1
  • 1
ashtom
  • 804
  • 1
  • 8
  • 13