Coder Social home page Coder Social logo

Comments (6)

Justin-Credible avatar Justin-Credible commented on August 16, 2024

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

from fabricplugin.

emc2spider avatar emc2spider commented on August 16, 2024

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 :(

from fabricplugin.

nartawak avatar nartawak commented on August 16, 2024

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

from fabricplugin.

Justin-Credible avatar Justin-Credible commented on August 16, 2024

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

from fabricplugin.

nartawak avatar nartawak commented on August 16, 2024

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. :(

from fabricplugin.

davemckenna01 avatar davemckenna01 commented on August 16, 2024

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 ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)

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 ..." to include in what will be committed)

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

from fabricplugin.

Related Issues (20)

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.