Coder Social home page Coder Social logo

Comments (13)

IlyaBausovAkvelon avatar IlyaBausovAkvelon commented on June 4, 2024 1

Hello @rg224.
We will take a look at this issue and write you back as soon as there will be update.

from appcenter-sdk-react-native.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on June 4, 2024 1

Hi @sahilmahajanpikup , please share your verbose logs.
The code snippet of your AppCenter SDK initialization and sending analytics data would also be helpful.

from appcenter-sdk-react-native.

sahilamahajan66 avatar sahilamahajan66 commented on June 4, 2024

hi @IlyaBausovAkvelon any update?

from appcenter-sdk-react-native.

rg224 avatar rg224 commented on June 4, 2024

Hi @DmitriyKirakosyan we do not send analytics data, all we want is to track crashes.

here is the Code snippet of AppCenter SDK initialization for ios:
Screenshot 2022-08-01 at 11 35 42 AM

Screenshot 2022-08-01 at 11 34 49 AM

from appcenter-sdk-react-native.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on June 4, 2024

Hi @rg224 , I would still check the verbose logs if possible. Are you testing crashes locally? If so, try to call Crashes.generateTestCrash() (see docs). Make sure the debugger is not attached. Also keep in mind that the crash is sending on the next app launch, after the crash happened.

from appcenter-sdk-react-native.

rg224 avatar rg224 commented on June 4, 2024

@DmitriyKirakosyan below are verbose logs and when I tried using Crashes.generateTestCrash() app isn't getting crashed (debugger wan't connected)

Verbose logs:

2022-08-01 17:13:41.452778+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel AppCenter.
2022-08-01 17:13:41.465166+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel AppCenter/one.
2022-08-01 17:13:41.465506+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel Analytics.
2022-08-01 17:13:41.466432+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel Analytics/one.
2022-08-01 17:13:41.466621+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel Analytics_critical.
2022-08-01 17:13:41.467170+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel Analytics_critical/one.
2022-08-01 17:13:41.467488+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel AppCenter/one.
2022-08-01 17:13:41.467688+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel Analytics/one.
2022-08-01 17:13:41.468416+0530 runerra[39760:4167841] [AppCenter] VERBOSE: -[MSACChannelUnitDefault pauseWithIdentifyingObjectSync:]/480 Identifying object <MSACAppCenter: 0x6000027f0540> added to pause lane for channel Analytics_critical/one.

from appcenter-sdk-react-native.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on June 4, 2024

@rg224 , just tested this myself on a sample app and it worked as expected. Here is what I did:

  1. Added [MSACAppCenter setLogLevel: MSACLogLevelVerbose]; before the [AppCenterReactNative register]; call.
  2. Added a button in JS code: { text: "Crash App", onPress: () => Crashes.generateTestCrash() }
  3. Launched the app from Xcode with debug executable: false
  4. Crashes the app by clicking the button
  5. Relaunched the app from Xcode and made sure the crash log was sent by checking the logs.

Please make sure you didn't miss anything from these steps. If you find the text Cannot start service MSACCrashes. App Center was started without app secret, but the service requires it., then make sure you configured the app secret in the AppCenter-Config.plist file as described here.

from appcenter-sdk-react-native.

rg224 avatar rg224 commented on June 4, 2024

@DmitriyKirakosyan ok sure, I'll again follow these steps and inform you

from appcenter-sdk-react-native.

rg224 avatar rg224 commented on June 4, 2024

@DmitriyKirakosyan can you tell me steps of how I can perform debug executable: false (as I am unable to find the checkbox to disable debugging in Xcode)

Although on clicking btn for crashing the app I am getting following message:
[AppCenter] ERROR: -[MSACServiceAbstract canBeUsed]/58 Crashes service hasn't been started. You need to call [MSACAppCenter start:YOUR_APP_SECRET withServices:LIST_OF_SERVICES] first.

from appcenter-sdk-react-native.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on June 4, 2024

Crashes service hasn't been started. You need to call [MSACAppCenter start:YOUR_APP_SECRET withServices:LIST_OF_SERVICES] first

@rg224 , this means you haven't initialized AppCenter SDK properly. Have you created AppCenter-Config.plist, added app secret to it as described here, and (important) added the file in Xcode?

can you tell me steps of how I can perform debug executable: false (as I am unable to find the checkbox to disable debugging in Xcode)

Click on your selected scheme, then Edit Scheme... -> Run -> Debug executable (checkbox)

from appcenter-sdk-react-native.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on June 4, 2024

@rg224 you can use this repo as a reference and example: https://github.com/microsoft/appcenter-sampleapp-react-native, or DemoApp inside this repository.

from appcenter-sdk-react-native.

rg224 avatar rg224 commented on June 4, 2024

ok sure will reference it @DmitriyKirakosyan
Thanks!

from appcenter-sdk-react-native.

rg224 avatar rg224 commented on June 4, 2024

Crashes service hasn't been started. You need to call [MSACAppCenter start:YOUR_APP_SECRET withServices:LIST_OF_SERVICES] first

@rg224 , this means you haven't initialized AppCenter SDK properly. Have you created AppCenter-Config.plist, added app secret to it as described here, and (important) added the file in Xcode?

can you tell me steps of how I can perform debug executable: false (as I am unable to find the checkbox to disable debugging in Xcode)

Click on your selected scheme, then Edit Scheme... -> Run -> Debug executable (checkbox)

after following all the steps mentioned above, it seems that AppCenter-Config.plist wasn't added in Xcode, because of which crashes were not getting generated.
But now they are.
Thankyou @DmitriyKirakosyan

from appcenter-sdk-react-native.

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.