Giter Club home page Giter Club logo

Comments (12)

vvechkanov avatar vvechkanov commented on June 2, 2024 1

Thank you @Sergey-Nosov-CloudFit, for the application you provided.
I confirm that there is an issue with provided example. But I need some more time to look into it deeper.

from appcenter-sdk-react-native.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on June 2, 2024 1

Hi @Sergey-Nosov-CloudFit , this definitely looks like a bug.

As a workaround using ASK_JAVASCRIPT for appCenterCrashes_whenToSendCrashes should work.
You can skip implementation of shouldAwaitUserConfirmation, and the crash will be sent automatically. But if you do implement, and return true, then you will need to call Crashes.notifyUserConfirmation manually. This worked for me on your app.
You mentioned that this option didn't work for you. May I ask you to double check and if it is still not working, please add the line AppCenter.setLogLevel(LogLevel.VERBOSE); and share the app logs.

from appcenter-sdk-react-native.

Sergey-Nosov-CloudFit avatar Sergey-Nosov-CloudFit commented on June 2, 2024 1

@DmitriyKirakosyan, thank you for the workaround. Yep, it works!

It did not work for me two weeks ago as I did both, changed the appCenterCrashes_whenToSendCrashes setting from DO_NOT_ASK_JAVASCRIPT to ASK_JAVASCRIPT and added the following line of code:

Crashes.notifyUserConfirmation(UserConfirmation.ALWAYS_SEND);

Setting 'ASK_JAVASCRIPT' but not Crashes.notifyUserConfirmation(UserConfirmation.ALWAYS_SEND); works.

This is super confusing.

from appcenter-sdk-react-native.

shadyabarada avatar shadyabarada commented on June 2, 2024

Hi @Sergey-Nosov-CloudFit , thank you for reporting this. We are investigating this issue and will get back to you as soon as possible.

from appcenter-sdk-react-native.

shadyabarada avatar shadyabarada commented on June 2, 2024

Hi @Sergey-Nosov-CloudFit , may I ask if you have this set in your configuration to ASK_JAVA_SCRIPT as per the below:
Open the project's android/app/src/main/res/values/strings.xml file and verify that appCenterCrashes_whenToSendCrashes is set to ASK_JAVASCRIPT. ASK_JAVASCRIPT

from appcenter-sdk-react-native.

Sergey-Nosov-CloudFit avatar Sergey-Nosov-CloudFit commented on June 2, 2024

Hello, here are the settings as we have them currently:

    <string name="appCenterCrashes_whenToSendCrashes" moduleConfig="true" translatable="false">DO_NOT_ASK_JAVASCRIPT</string>
    <string name="appCenterAnalytics_whenToEnableAnalytics" moduleConfig="true" translatable="false">ALWAYS_SEND</string>

The crash repots do flow-in to AppCenter. It is just the attachments that are missing. If the appCenterCrashes_whenToSendCrashes setting was incorrect the reports would not flow in at all, right? Or is there more to it?

Thank you!

from appcenter-sdk-react-native.

Sergey-Nosov-CloudFit avatar Sergey-Nosov-CloudFit commented on June 2, 2024

Regardless of the post above, I just tried changing the appCenterCrashes_whenToSendCrashes setting from DO_NOT_ASK_JAVASCRIPT to ASK_JAVASCRIPT and adding the following line of code:

Crashes.notifyUserConfirmation(UserConfirmation.ALWAYS_SEND);

This application gets deployed to company-owned devices, and needs no user consent.

Unfortunately, this did not fix the issue -- attachments are still missing.

from appcenter-sdk-react-native.

shadyabarada avatar shadyabarada commented on June 2, 2024

Hi @Sergey-Nosov-CloudFit , thank you for the further information. May I ask about the size of the attachment you're trying to send? It should not exceed 1.4 MB on Android.

from appcenter-sdk-react-native.

Sergey-Nosov-CloudFit avatar Sergey-Nosov-CloudFit commented on June 2, 2024

The attachment is 'Hello text attachment!' -- 22 bytes. Thanks!

from appcenter-sdk-react-native.

AnatolyPristensky avatar AnatolyPristensky commented on June 2, 2024

Hello @Sergey-Nosov-CloudFit, could you please share a sample application where the issue is reproducible?
It will be very helpful for us.

from appcenter-sdk-react-native.

Sergey-Nosov-CloudFit avatar Sergey-Nosov-CloudFit commented on June 2, 2024

Sure, here is a sample application that demonstrates the issue:
https://github.com/orderfactory/react-native-app-center

Thanks!

from appcenter-sdk-react-native.

DmitriyKirakosyan avatar DmitriyKirakosyan commented on June 2, 2024

I'm going to close this issue because we don't have immediate plans to fix it, but we appreciate contributions!

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.