Giter VIP home page Giter VIP logo

Comments (14)

fechy avatar fechy commented on May 29, 2024 1

@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.

fechy avatar fechy commented on May 29, 2024

@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.

NathanMBui avatar NathanMBui commented on May 29, 2024

@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.

NathanMBui avatar NathanMBui commented on May 29, 2024

It works, thank you very much @fechy,
Hope they'll fix those "log" methods soon

from robovm-robopods.

obigu avatar obigu commented on May 29, 2024

@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.

fechy avatar fechy commented on May 29, 2024

@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.

NathanMBui avatar NathanMBui commented on May 29, 2024

@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.

nnkdev avatar nnkdev commented on May 29, 2024

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.

NathanMBui avatar NathanMBui commented on May 29, 2024

@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.

nnkdev avatar nnkdev commented on May 29, 2024

@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.

NathanMBui avatar NathanMBui commented on May 29, 2024

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.

nnkdev avatar nnkdev commented on May 29, 2024

@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.

nnkdev avatar nnkdev commented on May 29, 2024

@NathanMBui
I have 3 issues not yet understood, please explain to me.

  1. 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?

  1. Additionally you can add this line to enable debug:
    Crashlytics.getSharedInstance().setDebugMode(true);
    Where is call this command?

Thanks again !

from robovm-robopods.

NathanMBui avatar NathanMBui commented on May 29, 2024

@hoangtunho2611

  1. I think it should work on simulator and it takes time to report to dashboard.
  2. call this inside didFinishLaunching:
    NSException.registerDefaultJavaUncaughtExceptionHandler();
  3. 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)

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.