Giter Club home page Giter Club logo

hockeysdk-cordova's People

Contributors

ashtom avatar avargaskun avatar cwannerstedt avatar david-byng avatar digitalbath avatar dlevine82 avatar geof90 avatar janpio avatar lostintangent avatar lumaxis avatar matthiaswenz avatar okulygin avatar peutetre avatar ryuyu avatar schulti avatar vladimir-kotikov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hockeysdk-cordova's Issues

Issue while doing build with Intel XDK

I am building a hybrid app and would like to integrate HockeyApp. I am using Intel XDK for doing the build. While doing the build from Intel XDK, its giving an error saying "Gradle script not supported". Is it possible to have the gradle script removed from the src android folder?

Feature request - update SDK to latest version

Hi, I'm interested in tackEvent api which support properties and measurements.
Since the current SDK version doesn't contain this API (it exists from 4.1.1) I can't use it in my cordova app.

If you need any help with this, I can help and create a new pull request with these changes, I just need to know if there are any new APIs that should be added in addition to the new trackEvent method.

Thanks

Visual Studio 2015 Cordova Plugin Add Fail

I get error when trying to add this plugin to Visual Studio Tools For Apache Cordova:
"Visual Studio was unable to parse plugin.xml. Please ensure plugin.xml exists and contains no errors."
It is caused by a missing declaration for "android" namespace.

<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
    xmlns:android="http://schemas.android.com/apk/res/android" <-- missing namespace
    id="cordova-plugin-hockeyapp"
    version="1.3.0">

Check new version

When is new version available on call hockeyapp.checkForUpdate(); appears alert, any solution when new version is not available any feedback alert after call hockeyapp.checkForUpdate().

Adding details to crash report

Hi,

Is there a mechanism for supplying crash details manually? In the case of an unhandled exception in the WebView I would like to force a crash and pass details on to HockeyApp.

Cannot find HockeySDKResources.bundle

Upon installing 0.1.0 I noticed that it errors out for iOS:

cannot find "plugins/com.zengularity.cordova.hockeyapp/src/ios/HockeySDK-iOS/HockeySDK.embeddedframework/HockeySDK.framework/Resources/HockeySDKResources.bundle"

The path to that file appears to have changed to HockeySDK.embeddedframework/HockeySDK.framework/Versions/A/Resources/HockeySDKResources.bundle

A plugin in your app does not support the compulsory arm64 (64-bit support) architecture.

Our iOS build fails with above error message whenever I try to integrate this into the app. I'm using PhoneGap Build.
In my config.xml:
<plugin name="https://github.com/bitstadium/HockeySDK-Cordova.git"/>

PhoneGap seems to be fetching and installing the plugin alright.
From build logs:
Fetching plugin "https://github.com/bitstadium/HockeySDK-Cordova.git" via git clone Repository "https://github.com/bitstadium/HockeySDK-Cordova.git" checked out to git ref "master" at "1d1d952". Installing "cordova-plugin-hockeyapp" at "2.2.1" for ios

However the build fails at the very end on the command:
Ld build/appName.build/Release-iphoneos/appName.build/Objects-normal/arm64/appName normal arm64 (replaced our real app name for appName)

I'm pretty sure the failure is related to this plugin because when I remove HockeySDK from config.xml, the .ipa is built correctly.

App crashes during startup sometimes

Hi!

We are trying to use HockeySDK-Cordova for our cordova project using the following code:

      ionic.Platform.ready(function () {
        if (window.hockeyapp) {
          window.hockeyapp.start(null, null, "my_app_guid_here");
        }
      });

Unfortunately our app successfully starts only once per 4-5 tries, other times it's frozen and don't react on touches/keypresses, debugger window also gets frozen.

I believe something wrong happens inside the native part of plugin, because the following code gets called, and after that it stops responding:

exec(success, failure, "HockeyApp", "start", [appId, loginMode, appSecret, autoSend, ignoreDefaultHandler]);

Do you have any clue why that may happen?

P.S.
It starts and works with no problems when window.hockeyapp.start is commented (disabled)

We are using Cordova 6.0.0 and iPad Air 2 with iOS 9.3, but situation the same for any device in simulator as well.

Reproducing scenario:

  1. Start app
  2. Press the home button 2 times and close app.
  3. Try to start app again. (if it works - go to point 2)

checkForUpdate doesn't work on iOS

Tried using the this function and nothing happens. I do get a success callback when invoking it but nothing seems to happen. Using it on actual device. iOS 9.3. Othe functions like feedback and crash work fine.

Basic example.

I'm new to phonegap and js. Can you show me how this plugin works?
For example what is token? I can find only app_id and secret in hockeapp page.

Sorry for direct request, but I simply can't google anything.
Thanks!

support for Windows

Are there any plans to support Windows alongside iOS and Android? Timeframe?

Android build failing in PhoneGap Build

I'm using the Cordova plugin for HA (v2.2.2) very happily with iOS. Primarily because I'm on Windows, I'm using PhoneGap Build for my builds. The iOS build succeeds (and runs great - including the HA features - on devices), but the Android build fails. The beginning of the compilation in the build log shows:

    [javac] Compiling 22 source files to /project/bin/classes
    [javac] /project/src/com/zengularity/cordova/hockeyapp/HockeyApp.java:11: error: package net.hockeyapp.android does not exist
    [javac] import net.hockeyapp.android.CrashManager;

And, not surprisingly, there are quite a few more errors. At the end there's this:

    [javac] Note: Some input files use or override a deprecated API.

Is there a known current issue with Android, or should I be looking at how I've got config.xml set up for that platform? When I omit just the HA plugin for Android, the app builds and installs and runs just fine.

Thanks for the guidance.

TrackEvent with details

HockeyMetrics.MetricsManager.TrackEvent have overloaded method with event properties and measurements

public void TrackEvent(string eventName, Dictionary<string, string> properties, Dictionary<string, double> measurements);

It will be handy to add more info about event.
For example override console.error function to catch crashes in JavaScript and publish such event with error details.

Update HockeyApp SDK for NSPhotoLibraryUsageDescription issue

Hi,

In the master branch the NSPhotoLibraryUsageDescription is added to the plist to resolve the iOS 10 privacy issue, even if the feedback feature isn't used.

In following post it is stated that HockeyApp SDK version 4.1.1 removes the feedback feature by default:

https://support.hockeyapp.net/kb/client-integration-ios-mac-os-x-tvos/known-issues-with-ios#app-store-rejection-because-of-missing-code-nsphotolibraryusagedescription-code-

Users that don't use the feedback feature (like me) shouldn't be forced to include the photo permission.

Kind Regards,

undefined error

Hi,
I tried installing the plugin but I'am getting an undefined error, for ios. Here's the console output:

Installing "com.zengularity.cordova.hockeyapp" for ios
Install start for "com.zengularity.cordova.hockeyapp" on ios.
Beginning processing of action stack for ios project...
Parsing ios project files...
Failed to install 'com.zengularity.cordova.hockeyapp':undefined
undefined

I'am using cordova 3.5.

Thanks
asvin

[Android] hockeyapp.checkForUpdate return value

Hi guys,

I am trying to integrate this plugin in my Ionic app.
My question is regarding the hockeyapp.checkForUpdate() function. When outputting the result in the logcat

hockeyapp.checkForUpdate(function (success) {
  console.log(JSON.stringify(success));
}, function (error) {
  console.log(JSON.stringify(error));
})

The response is

I/chromium( 3384): [INFO:CONSOLE(38)] ""OK"", source: file:///android_asset/www/app/app.js (38)

I would like to show a "There is a new update" dialog if there is a new update.
How can I detect if there is a new update if the plugin only returns "OK"?

Same app id for both Android and iOS App

Hi Team,

Is it possible to use the same app id for both andorid and ios applications for crash reporting ?

In hockeyapp usually for 2 different apps 2 different app ids are generated.

Regards,
Ashvin

Android: dosnt work

Integrate in my app (Cordova 5.4.1), build release, sign, realign, upload to hockeyapp, download via mobile-hockey-app to 2 android devices, and no have stats in hocheyapp-web-rink:
No statistics found. Please integrate HockeySDK to collect analytics, crash reports, and feedback:

Run my app on devise via Android-Studio and see in logs:

03-03 09:58:47.034 28547-28611/? D/HockeyApp: Looking for exceptions in: /data/data/com.evrone.myapp/files
03-03 09:58:47.034 28547-28611/? I/System.out: mkdir failed: EEXIST (File exists) path = /data/data/com.evrone.myapp/files
03-03 09:58:47.034 28547-28611/? D/HockeyApp: Current handler class = net.hockeyapp.android.ExceptionHandler

Cannot remove plugin

I cannot remove the plugin via command line.

$ cordova platform add android
$ cordova platform add ios
$ cordova plugin add cordova-plugin-hockeyapp
Fetching plugin "cordova-plugin-hockeyapp" via npm
Installing "cordova-plugin-hockeyapp" for android
Installing "cordova-plugin-hockeyapp" for ios

$ cordova plugin rm cordova-plugin-hockeyapp
Uninstalling cordova-plugin-hockeyapp from android
Uninstalling cordova-plugin-hockeyapp from ios
Error during processing of action! Attempting to revert...
Error: Uh oh!
Path must be a string. Received undefined

Unmet project requirements for latest version of cordova-plugin-hockeyapp

Attempting to add the plugin to a new project on the latest Cordova falls back to 2.2.4 and not the latest 5.0.1.

Cordova: 7.1.0

cordova plugins add cordova-plugin-hockeyapp
Unmet project requirements for latest version of cordova-plugin-hockeyapp:
    cordova (7.1.0 in project, >100 required)
Fetching highest version of cordova-plugin-hockeyapp that this project supports: 2.2.4 (latest is 5.0.1)

Steps to reproduce:

// Create a new project.
cordova create hello com.hello hello

Creating a new cordova project.
// Add the Android platform
cordova platforms add android

Using cordova-fetch for cordova-android@~6.3.0
Adding android project...
Creating Cordova project for the Android platform:
        Path: platforms\android
        Package: com.hello
        Name: hello
        Activity: MainActivity
        Android target: android-26
Subproject Path: CordovaLib
Android project created with [email protected]
Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
Installing "cordova-plugin-whitelist" for android

               This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.

Adding cordova-plugin-whitelist to package.json
Saved plugin info for "cordova-plugin-whitelist" to config.xml
--save flag or autosave detected
Saving android@~6.3.0 into config.xml file ...
// Add the plugin
cordova plugins add cordova-plugin-hockeyapp

Unmet project requirements for latest version of cordova-plugin-hockeyapp:
    cordova (7.1.0 in project, >100 required)
Fetching highest version of cordova-plugin-hockeyapp that this project supports: 2.2.4 (latest is 5.0.1)
Installing "cordova-plugin-hockeyapp" for android
Subproject Path: CordovaLib
Adding cordova-plugin-hockeyapp to package.json
Saved plugin info for "cordova-plugin-hockeyapp" to config.xml

Is the correct solution to simply use:

cordova plugin add cordova-plugin-hockeyapp@latest

This will install 5.0.1.

Though running the add command with "latest" after running it without it, won't upgrade from 2.2.4 to 5.0.1. Run remove and add to get 5.0.1.

Perhaps the requirements configuration should be fixed on npmjs? Not sure if the same problems occurs if one uses the built-in plugins manager in Visual Studio?

Auto send crash reports is not working

Calling hockeyapp.start method with true in the autoSend parameter doesn't cause the plugin to auto send crash reports on iOS.

This seems to be due to the way the autoSend value is checked in the objective c code. The value is checked using [autoSend isEqual:@"true"].
Debugging the code showed that the value passed to objective c is "1" for true and "0" for false.

crashes not logged in hockeyapp dashboard for ios

Hi,

Iā€™m working on the integration of hockey sdk in a hybrid application. For that Iā€™m using cordova-plugin-hockeyapp https://github.com/peutetre/cordova-plugin-hockeyapp

Android version works fine, crashed are detected and sent to the hockey dashboard, but for iOS the app crashes but the next time i launch it there is no popup shown and thus no crashes are logged in the hockeyapp dashboard.

Here are sdk i have in my project : (no 3rd party that has a crash reporting feature)
screen shot 2015-07-08 at 11 02 28

When a crash occurs in the app installed from hockeyapp plateform, the next time i launch a clean app no popup shown asking the user whether he wants to send crash log to the server or not. Thus no crashes are logged in hockeyapp dashboard.

Thanx in advance for your help.

Best

Intermittent App Crashing on iPhone 7, and iPhone SE on iOS 10.3.2

I suspect the issue lies with the HockeyApp SDK because when I remove this plugin my issue goes away, and when running the app in xcode with the plugin I see:

THREAD WARNING: ['Hockeyapp'] took '13.104980' ms. Plugin should use a background thread.

in the debug console.

I have been using the HockeyApp SDK on iOS and Android without issue until I tested with combination of hardware and OS. Hope I'm not totally wrong and wasting your time!

Support for iOS 9 - include bitcode

iOS 9 builds require bitcode by default. It's possible to set ENABLE_BITCODE to NO, but this isn't the recommended setting, and it isn't easy to do with the Cordova CLI (my project rebuilds the platforms directory often, so doing this manually with XCode is not a good option).

Could you please include the bitcode for hockeyapp so the ENABLE_BITCODE default can be used?

Track events is not working

I'm calling into the hockeyapp API like this:

hockeyapp.start(null, null, 'my-id', true);
hockeyapp.trackEvent(null, null, 'OPENED');

I never see the event in the HockeyApp dashboard. The session is recorded properly, and crashes make it OK, just the events are not showing up. If I add a handler for the success and error callbacks, the success callback is called. Any ideas why this is not working?

PhoneGap Build Error

I am having trouble building with PhoneGap Build. This was working fine <12 hours ago but now fails with this error;

Failed to install 'cordova-plugin-hockeyapp': CordovaError: Uh oh! "/project/cordova/plugins/cordova-plugin-hockeyapp/src/android/HockeySDK-Android/HockeySDK-5.0.1.aar" not found! at copyFile (/project/cordova/lib/pluginHandlers.js:219:36) at install (/project/cordova/lib/pluginHandlers.js:74:13) at Object.process (/project/cordova/node_modules/cordova-common/src/ActionStack.js:56:25) at PluginManager.doOperation (/project/cordova/node_modules/cordova-common/src/PluginManager.js:117:20) at PluginManager.addPlugin (/project/cordova/node_modules/cordova-common/src/PluginManager.js:147:17) at /project/cordova/Api.js:254:18 at _fulfilled (/project/cordova/node_modules/q/q.js:854:54) at self.promiseDispatch.done (/project/cordova/node_modules/q/q.js:883:30) at Promise.promise.promiseDispatch (/project/cordova/node_modules/q/q.js:816:13) at /project/cordova/node_modules/q/q.js:570:49 Uh oh! "/project/cordova/plugins/cordova-plugin-hockeyapp/src/android/HockeySDK-Android/HockeySDK-5.0.1.aar" not found!

I can see you are updating things so it may need some time to all sync through. Thought you may want to know just in case.

Love this plugin by the way. Thanks!

iOS checkForUpdate implicit on app start and on app foreground cannot be disabled

Hi,
I'm using latest version of plugin with iOS SDK to 4.1.5.
I see alerts for new versions, but I want them to be shown only when I manually call checkForUpdate().

I've checked [BITHockeyManager sharedInstance].updateManager.checkForUpdateOnLaunch on AppDelegate and is NO. Why are the alerts appearing even if I don't call checkForUpdate() manually?

I've checked also the updateManager.updateSetting and it's BITUpdateCheckStartup, I tried to set to BITUpdateCheckManually but is not working. Where and how can I update this value?

Thanks!

Checking for updates is not work

hi!
i have a problem on checking for updates is not work.
i created a new version from this link -> https://support.hockeyapp.net/kb/app-management-2/how-to-create-a-new-version

i add plugins along with the following associated platform, increased the CFBundle Version (iOS) with each new build in config.xml and edit code in index.js to start hockeyappSDK.

this source -> https://github.com/sutinee742/HelloAngstrom

Then i built ipa file with phonegap tool.

when uploaded .ipa on hockeyapp and updated another version, tested it. i found feedback function and forcecrash fucntion work, but check for updates is not display updated ui.
https://files.slack.com/files-tmb/T0K40UXFX-F5S71DRN0-bd9a4bad9f/img_0024_1024.jpg

hockeyapp cordova plugin: plugin is already started!

We are receiving a lot of errors when we are starting the hockeyAppSdk.
The error we receive is: hockeyapp cordova plugin: plugin is already started!

We think the webview our app is hosted in, crashed, restarted the app and in the startup of our app, we try to start the hockeyAppSdk again.
Could this be the issue?

Suggestion: Automatically ENABLE_BITCODE=NO via plugin hook for Cordova iOS < 3.9.2

The message about ENABLE_BITCODE for iOS is a bit misleading since this is only true if you are using Cordova < 5.2.0 - specifically Cordova iOS platform versions < 3.9.2 (which was released in Nov but is installed by 5.2.0 and 5.3.3). New versions of the iOS platform also won't have this problem.

A better solution would be to simply append the ENABLE_BITCODE=NO setting if not found via a cordova hook.

Generally checking in the platforms folder into source control isn't supposed to be required, but this sort of forces you to do so.

ios9 integration

In Rollbar's docs I see Update your app's Info.plist file to not enforce Forward Secrecy for the Rollbar cloudfront domain::

  <key>NSAppTransportSecurity</key> 
  <dict> 
    <key>NSExceptionDomains</key> 
    <dict> 
      <key>d37gvrvc0wt4s1.cloudfront.net</key> 
      <dict> 
        <key>NSExceptionRequiresForwardSecrecy</key> 
          <false/> 
        <key>NSIncludesSubdomains</key> 
          <true/> 
      </dict> 
    </dict> 
  </dict>

I dont save /platform and /plugins in git-repo, as /node_modules. For example, in my config.xml:

  <plugin name="phonegap-plugin-push" spec="~1.6.2">
    <variable name="SENDER_ID" value="999999999999" />
  </plugin>

produce Info.plist changes.

Android - composeFeedback failure - "failed to take screenshot"

The following results in a failed to take screenshot error only on Android:

var failure = function(a) { console.log(a); };
var success = function(a) { console.log(a); };
window.hockeyapp.composeFeedback(success, failure, true, {});

This is happening on the two test devices I have:

  • Samsung Galaxy S6 running Android 5.1.1
  • Nexus 6P running 7.0
$ cordova -v
6.3.1

$ cordova platforms
Installed platforms:
  android 5.1.1
  ios 4.1.1

If I pass in false for the screenshot parameter it works, as well as the normal feedback() call.

Ionic integration

Hey!

Thanks for the cool plugin.

Should it be possible to get back from the responses view (check the image below)

screenshot_2015-07-30-10-26-59

When pressing the back button on Ionic, it just closes the Feedback view, no matter what I do. I've tried several variations of disabling the hardware back button, which previously have worked. So I'm a little stumped.

So I have something like this:

hockeyapp.feedback(
                function onFeedBackSuccess(success) {
                    console.log('onFeedBackSuccess')
                    console.dir(success);
                },
                function onFeedbackError(err) {
                    console.log('onFeedbackError')
                    console.dir(err);
                }
            );

And I have this as well:

$ionicPlatform.onHardwareBackButton(function($event) {
                $event.preventDefault();
                $event.stopPropagation();
            }, 1000000000);

Which is the equivalent of basically calling this:

document.addEventListener("backbutton", function () { }, false);

And that has worked previously with Ionic. And I did try with just the basic version as well.

Any help on this would be awesome

iOS: xCode warning

appdir/platforms/ios/MyApp/Plugins/cordova-plugin-hockeyapp/HockeyApp.m:34:73: Sending 'HockeyApp *const __strong' to parameter of incompatible type 'id<BITHockeyManagerDelegate>'

Not work in latest ?

hi,
My Cordova project has following details:
Installed platforms:
android 6.3.0

In Login view.js, onDeviceReady function i add : hockeyapp.start(null, null, '0b7c4d1939a64570a2bd4b38732d1e0e', true);

And in another js i call hockeyapp.forceCrash(); neither app crashes nor error reports available in hockey app

Did i do anything wrong ? any solution

UpdatePrompt automatically activated on iOS but not on Android?

I'm trying to find out why the UpdatePrompt is no triggered on our Android app. As we only implemented the bare minimum, I am even more confused why it is triggered on iOS.

Is it possible that the prompt is always automatically triggered on iOS, but additional code is neede for Android?

Android build error with Visual Studio Team Services build

We have setup continuous integration (CI) for our Ionic app in Visual Studio Team Services (Visual Studio Online).
We added the plugin to the project, but hockeyapp was could not be referenced when built using CI.
It works when building locally on the dev PC. So we tried to force the plugin to be used in CI by adding a reference to it in the config.xml file. Then build fails with error:

2016-09-04T08:58:44.7887913Z     [javac] C:\a\1\s\src\app\platforms\android\src\com\zengularity\cordova\hockeyapp\HockeyApp.java:11: error: package net.hockeyapp.android does not exist
2016-09-04T08:58:44.7887913Z     [javac] import net.hockeyapp.android.CrashManager;
2016-09-04T08:58:44.7887913Z     [javac]                             ^
2016-09-04T08:58:44.7887913Z     [javac] C:\a\1\s\src\app\platforms\android\src\com\zengularity\cordova\hockeyapp\HockeyApp.java:12: error: package net.hockeyapp.android does not exist
2016-09-04T08:58:44.7887913Z     [javac] import net.hockeyapp.android.CrashManagerListener;
2016-09-04T08:58:44.7887913Z     [javac]                             ^

ionic info shows:

Your system information:

Cordova CLI: 6.3.1
Gulp version:  CLI version 3.9.0
Gulp local:   Local version 3.9.1
Ionic Framework Version: 1.3.1
Ionic CLI Version: 2.0.0-beta.37
Ionic App Lib Version: 2.0.0-beta.20
OS:
Node Version: v4.4.3

Does anyone know how to fix CI builds to make the plugin work?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.