FabricPlugin
FabricPlugin copied to clipboard
android app not being detected
I have an app build on Cordova that runs both iOS and Android. When I set up the plugin, after tinkering with it a while I managed to get it working with iOS but no luck at all with Android. It throws no errors on the plugin, both Answers and Crashlytics functions seem to go by unnoticed, the sendCrash
does crash the app but no logs are sent to the Fabric dashboard.
Am I missing something? If anyone else has a working app using this, how did you manage to set it up?
I'm using the un-altered plugin in production now. Sometimes the crash reports aren't sent immediately after the crash, but the next time the app is launched. This is not a limitation of the plugin, but it is how the Fabric SDK works.
I recommend double checking your two keys are correct when you add the plugin:
cordova plugin add cordova-fabric-plugin --variable FABRIC_API_KEY=XXX --variable FABRIC_API_SECRET=xxx
Ok, I must be doing something weird or my configuration is not the same... I double checked my API and Secret keys, and I'm testing with a sendCrash()
after 'deviceready'
and my local dependencies are verified, but the dashboard still shows nothing.
Also with an un-altered version of the plugin. I'm running mac osx 10.11.3, node 5.10.0, cordova 6.1.1, cordova-android 5.1.1, android sdk 23.0.3
iOS apps were detected after first launch in about 2 or 3 minutes, I keep launching and crashing the Android ones with no success on the fabric dashboard :(
Hi, I have the same issue. Is there a workaround ? node 5.6.0, cordova 6.1.0, cordova-android 5.1.1, android sdk 21
I would double check that you've added the plugin after you've added your platforms so that the build hooks can update the platform files properly.
After the first launch of the app it should show up in the dashboard.
$ node --version
v4.2.2
$ cordova --version
6.1.1
$ cordova create TestApp4
Creating a new cordova project.
$ cd TestApp4
$ cordova plugin add cordova-fabric-plugin --variable FABRIC_API_KEY=xxx --variable FABRIC_API_SECRET=xxx
Fetching plugin "cordova-fabric-plugin" via npm
$ cordova platform add ios
Adding ios project...
iOS project created with [email protected]
Installing "cordova-fabric-plugin" for ios
Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to the project
Fetching plugin "cordova-plugin-whitelist@1" via npm
Installing "cordova-plugin-whitelist" for ios
$ cordova platform add android
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: io.cordova.hellocordova
Name: HelloCordova
Activity: MainActivity
Android target: android-23
Android project created with [email protected]
Installing "cordova-fabric-plugin" for android
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.
$ cordova prepare ios
$ cordova prepare android
I find my bug, this is a wrong rights on my platform folder, idon't know why. I deleted all my project, clone it again and the issue is solved. there is no issues with your plugin. :(
I'm experiencing this also. I have an existing Cordova project, with iOS and Android platforms. I add the cordova-fabric-plugin and the following files are added to my project:
Changes not staged for commit:
(use "git add
modified: platforms/android/.gradle/2.2.1/taskArtifacts/cache.properties.lock modified: platforms/android/.gradle/2.2.1/taskArtifacts/fileHashes.bin modified: platforms/android/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin modified: platforms/android/.gradle/2.2.1/taskArtifacts/outputFileStates.bin modified: platforms/android/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin modified: platforms/android/AndroidManifest.xml modified: platforms/android/CordovaLib/build/intermediates/bundles/debug/classes.jar modified: platforms/android/CordovaLib/build/intermediates/bundles/release/classes.jar modified: platforms/android/CordovaLib/build/intermediates/incremental/mergeDebugAssets/merger.xml modified: platforms/android/CordovaLib/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml modified: platforms/android/CordovaLib/build/intermediates/incremental/mergeReleaseAssets/merger.xml modified: platforms/android/CordovaLib/build/intermediates/incremental/mergeReleaseJniLibFolders/merger.xml modified: platforms/android/CordovaLib/build/intermediates/incremental/packageDebugResources/merger.xml modified: platforms/android/CordovaLib/build/intermediates/incremental/packageReleaseResources/merger.xml modified: platforms/android/CordovaLib/build/outputs/aar/CordovaLib-debug.aar modified: platforms/android/CordovaLib/build/outputs/aar/CordovaLib-release.aar modified: platforms/android/android.json modified: platforms/android/build.gradle modified: platforms/android/platform_www/cordova_plugins.js modified: platforms/android/project.properties modified: platforms/android/res/xml/config.xml modified: platforms/ios/SecretProject.xcodeproj/project.pbxproj modified: platforms/ios/SecretProject/SecretProject-Info.plist modified: platforms/ios/SecretProject/config.xml modified: platforms/ios/frameworks.json modified: platforms/ios/ios.json modified: platforms/ios/platform_www/cordova_plugins.js modified: plugins/android.json modified: plugins/fetch.json modified: plugins/ios.json modified: www/app/router.js
Untracked files:
(use "git add
platforms/android/cordova-fabric-plugin/ platforms/android/platform_www/plugins/cordova-fabric-plugin/ platforms/android/src/com/sarriaroman/ platforms/ios/SecretProject/Plugins/cordova-fabric-plugin/ platforms/ios/platform_www/plugins/cordova-fabric-plugin/ plugins/cordova-fabric-plugin/
I'm able to crash the app in both iOS and Android, but only the iOS app actually makes it to Crashlytics:
window.fabric.Crashlytics.addLog("about to send a crash for testing!");
window.fabric.Crashlytics.sendNonFatalCrash('hey its a bug');
window.fabric.Crashlytics.sendCrash();
Is there a step I'm missing?
Thanks