Comments (14)
@NathanMBui I dont initialise it like that though, thats the old way. The recomended new way is:
public boolean didFinishLaunching(UIApplication application, UIApplicationLaunchOptions launchOptions) {
boolean finished = super.didFinishLaunching(application, launchOptions);
Fabric.with(Crashlytics.class);
return finished;
}
And the credentials you add them on the Info.plist.xml:
<key>Fabric</key>
<dict>
<key>APIKey</key>
<string>your-secret-key</string>
<key>Kits</key>
<array>
<dict>
<key>KitInfo</key>
<dict/>
<key>KitName</key>
<string>Crashlytics</string>
</dict>
</array>
</dict>
This way it worked for me, however I had to comment out those lines I've mentioned.
from robovm-robopods.
@NathanMBui: FYI, I've checked out the Robopods project, linked Crashlytics directly to my own project from gradle, and commenting out all the "log" methods, compiled, and all works now :)
Not the greatest of the solutions but I was able to use it, at least until its really fixed
from robovm-robopods.
@fechy Thanks for your information. It did work but when a make a force crash, fabric didn't receive any report. Have you face this issue or I have just missed something:
public boolean didFinishLaunching(UIApplication application, UIApplicationLaunchOptions launchOptions) {
boolean finished = super.didFinishLaunching(application, launchOptions);
Crashlytics.getSharedInstance();
Crashlytics.start(crashlyticApiKey);
return finished;
}
from robovm-robopods.
It works, thank you very much @fechy,
Hope they'll fix those "log" methods soon
from robovm-robopods.
@fechy Probably not the best place to ask but I'm very interested on this, do you see symbolicated crash reports using Crashlytics? Several posts on different forums say RoboVM doesn't work with Crashlytics so I'm curious to know about your experience.
from robovm-robopods.
@NathanMBui with some more digging I realise the problem was way simpler, no need for commenting out those CLS logs. And the solution is in the repo itself 🥇 , you just need to add this lines to your robovm.xml:
<exportedSymbols>
<symbol>CLS*</symbol>
</exportedSymbols>
@obigu I do. For that you will have to upload the dSYM file directly to Fabric (Search missing_dsyms on Fabric's docs). I use Fastlane (https://fastlane.tools) for building the IPAs and upload them to Beta. Makes things easier.
from robovm-robopods.
@fechy Thank for your information. Actually they just added it in the ReadMe 3 months ago (after I opened this issue).
So it should be closed now.
Thank you for all your helps
from robovm-robopods.
Hi @NathanMBui , @fechy
"exportedSymbols should be in RoboPod robovm.xml, not in app robovm.xml"
Where is the RoboPod robovm.xml file?
In build.gradle, i add compile:
compile "com.mobidevelop.robovm:robopods-fabric-ios:2.2.1"
compile "com.mobidevelop.robovm:robopods-fabric-ios-crashlytics:2.2.1"
Is it correct?
from robovm-robopods.
@hoangtunho2611
where did you get that quote?. Just add those lines into your project robovm.xml and it should work
And yes, it is correct.
PS: read README file for more details
from robovm-robopods.
@NathanMBui
I get quote here: https://github.com/MobiVM/robovm-robopods/tree/master/fabric/ios-crashlytics
I add those lines into my project robovm.xml and build on Simulator.
I received this error.
[ERROR] ld: framework not found Crashlytics
[ERROR] clang: error: linker command failed with exit code 1 (use -v to see invocation)
[ERROR] Couldn't compile app
from robovm-robopods.
I think you get it wrong. It is a commit's comment. Just add those lines into your project robovm to make sure your app can run then remove it later to see if it works too. The problem might be that you missing .framework files.
Please read "getting started" here: https://github.com/MobiVM/robovm-robopods/tree/master/fabric
from robovm-robopods.
@NathanMBui
I copy 2 file .framework (Fabric.framework and Crashlytics.framework) from xCode to ios/libs my project.
I have built on the simulator and no errors.
Thanks,
from robovm-robopods.
@NathanMBui
I have 3 issues not yet understood, please explain to me.
- Have Fabric crashlytics work on simulator report crash to Fabric.io dashboard?
And guide here: https://github.com/MobiVM/robovm-robopods/tree/master/fabric/ios-crashlytics
2. You need to configure Robovm to report uncaught exceptions as crashes. Call org.robovm.apple.foundation.NSException#registerDefaultJavaUncaughtExceptionHandler in com.badlogic.gdx.backends.iosrobovm.IOSApplication.Delegate#didFinishLaunching.
how to use it?
- Additionally you can add this line to enable debug:
Crashlytics.getSharedInstance().setDebugMode(true);
Where is call this command?
Thanks again !
from robovm-robopods.
@hoangtunho2611
- I think it should work on simulator and it takes time to report to dashboard.
- call this inside didFinishLaunching:
NSException.registerDefaultJavaUncaughtExceptionHandler();
- Call it anywhere after you init fabric with
Fabric.with(Crashlytics.class);
And you should create another issue instead of commenting on this one
from robovm-robopods.
Related Issues (20)
- Supported ADMOB version is outdated HOT 1
- Failed to reslove firebase messaging dependency version 5.16.0 HOT 1
- broken link HOT 1
- Does not compile with latest SDK on the README.md HOT 1
- nullPointer when initializing viewcontroller for ads HOT 5
- Disable / enable analytics collection HOT 2
- Update Facebook sdk HOT 1
- Firebase Analytics: Undefined symbols for architecture armv7 HOT 3
- Admob Bindings update HOT 1
- AdMob Native ads are not working HOT 4
- Presenting AdMob Interstitial & Reward ads in fullscreen using iOS 13, Xcode 11 HOT 1
- Kochava tracking robopods HOT 1
- Firebase Crashlytics and RoboVM HOT 1
- where can I get the outdated version of the admob lib HOT 1
- IOSLauncher: How to check build config is Development or Distribution provisioning profile. HOT 1
- Users report issues with closing interstitial Ads HOT 4
- Firebase iOS Messaging update HOT 1
- Fix documentation HOT 1
- Problem with google-signin-ios (Deprecated API Usage) HOT 4
- Outdated firebase/ios-analytics install instructions 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 robovm-robopods.