bitstadium / hockeysdk-cordova Goto Github PK
View Code? Open in Web Editor NEWHockeyApp was retired and the SDKs are deprecated. Please use App Center instead.
Home Page: https://github.com/microsoft/appcenter-sdk-cordova
License: Other
HockeyApp was retired and the SDKs are deprecated. Please use App Center instead.
Home Page: https://github.com/microsoft/appcenter-sdk-cordova
License: Other
I can not build in XCODE for IOS 9. This plugin includes as given HockeyAppSDK-iOS 3.7.1.
Hockey SDK 3.8+ supports ios9 accordung to release notes hier: http://hockeyapp.net/help/sdk/ios/3.8.2/docs/docs/Changelog.html
I've set autosend
to true
but I'm still getting the crash report dialog when opening the app after a crash.
I'm doing it like this:
hockeyapp.start(null, null, config.hockyId, true);
Is this a bug or am I doing something wrong?
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?
Why does the app crash when using non-anonymous authentication?
It would be great to add other authentication methods.
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
Just a thought right now, have to check: It could be that depending on the features used the permissions required on android could be changed (less features - less permissions).
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">
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().
When using this plugin in a typescript environment (Ionic 2 for example). A typescript definition file is really helpful. This can be distributed as part of the npm package or separately via https://github.com/DefinitelyTyped/DefinitelyTyped .
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.
By using .start() on Android currently you always start the FeedbackManager: https://github.com/peutetre/cordova-plugin-hockeyapp/blob/master/src/android/HockeyApp.java#L28
This may not be correct and the best way to handle things. This could either be an option or a seperate call to make, so the user can decide if he wants this module of HockeyApp activated or not.
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
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.
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:
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.
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!
Are there any plans to support Windows alongside iOS and Android? Timeframe?
I use this plugin to prompt autoupdate on Android platform.
android version 5.1.1
cordova Versin 6.1.1
my code:
function onDeviceReady() {
hockeyapp.start(null,null,"my app ID")
hockeyapp.checkForUpdate();
}
error message:
missing exec:HockeyApp.start
missing exec:HockeyApp.checkForUpdate
Is there something wrong?
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.
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.
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:
Users that don't use the feedback feature (like me) shouldn't be forced to include the photo permission.
Kind Regards,
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
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"?
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
We found that this plugin does not work correctly on Android 7 (7.1). Does not prompt to update app.
Any advises ? Android 6, 5, 4.4 and iOS its all ok.
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
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
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?
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.
Production builds should not include the UpdateActivity and also don't need the ExternalStorage permission afaik. There should be a way to disable these to be added to the Android project somehow.
As I am not yet totally clear on what actually has to be changed for release, I posted this question on the HockeyApp discussion board: http://support.hockeyapp.net/discussions/problems/49571-what-to-change-for-production-build-release
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)
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
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!
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?
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?
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!
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!
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
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?
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.
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.
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:
$ 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.
Hey!
Thanks for the cool plugin.
Should it be possible to get back from the responses view (check the image below)
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
appdir/platforms/ios/MyApp/Plugins/cordova-plugin-hockeyapp/HockeyApp.m:34:73: Sending 'HockeyApp *const __strong' to parameter of incompatible type 'id<BITHockeyManagerDelegate>'
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
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?
There is no update prompt on Android 6+. Same app on Android 4, 5 works well. To repro this issue app should not be installed from adb.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ššš
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ā¤ļø Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.