Comments (5)
I think we can only put a +1 here: https://twittercommunity.com/t/how-to-ungroup-non-fatal-exceptions-with-different-messages/59996/9
And hope twitter will do something about that.
from fabricplugin.
Crashlytics is for tracking native crashes which are separate from JavaScript exceptions.
If you want to track your JavaScript exceptions you should use a service like http://LogEntries.com and log the JS errors from the window.on_error
handler.
from fabricplugin.
I know Crashlytics is for native exceptions instead of the JS ones. But it gives more mobile specific information that is so useful. I have always used Sentry for that and I thought that the change would be worth it.
If no one has anything else to say, the issue can be closed. 👍
from fabricplugin.
I found a way to workaround it (on iOS), i use recordError with a crc32 on the first line of the stack trace for the errore code. Maybe it's not perfect but for now (in my case) is enough.
Here is i did it on ionic with stacktrace.js
.config(function($stateProvider, $urlRouterProvider, $provide) {
$provide.decorator("$exceptionHandler", ['$delegate', function($delegate) {
return function(exception, cause) {
$delegate(exception, cause);
var makeCRCTable = function(){
var c;
var crcTable = [];
for(var n =0; n < 256; n++){
c = n;
for(var k =0; k < 8; k++){
c = ((c&1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1));
}
crcTable[n] = c;
}
return crcTable;
}
var crc32 = function(str) {
var crcTable = window.crcTable || (window.crcTable = makeCRCTable());
var crc = 0 ^ (-1);
for (var i = 0; i < str.length; i++ ) {
crc = (crc >>> 8) ^ crcTable[(crc ^ str.charCodeAt(i)) & 0xFF];
}
return (crc ^ (-1)) >>> 0;
};
var message = exception.toString();
var stacktrace = exception.stack.toLocaleString();
window.fabric.Crashlytics.addLog("ERROR: " + message);
window.fabric.Crashlytics.addLog("Stacktrace: " + stacktrace);
window.fabric.Crashlytics.recordError(message, crc32(stacktrace.split('\n')[0]));
};
}]);
from fabricplugin.
I added a pull request that will push the js stack trace to fabric - then all js errors will be grouped the right way (at least on android)
from fabricplugin.
Related Issues (20)
- Auto distribution Android version.
- Error: Cannot find module 'xcode' HOT 3
- uncaptured error during startup HOT 1
- xcode 10 fabric not detecting archive HOT 2
- Android not build and App not listed in dashboard HOT 1
- Capacitor
- Fabric Roadmap HOT 1
- Using recordError method iOS App Crashed - Plugin - 1.1.14-dev HOT 6
- FabricPlugin and Ionic3
- I don't see my App on the Fabric Dashboard
- Android build broken (findObfuscationTransformTask...) HOT 6
- Fails to install for latest cordova-ios version (5.0.1 and maybe 5.0.0) HOT 6
- opencollective produces permission denied error
- Do we still need Fabric?
- disable? HOT 8
- Conditionally initialize reporting
- Cordova app crash is not displaying in firebase or fabric console
- [Important update] Fabric shutdown extended to May 4, 2020
- Cant build Android - ERROR - Crashlytics Developer Tools HOT 1
- Should this plugin still be used? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fabricplugin.