Comments (12)
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.
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.
@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.
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.
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.
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.
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.
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.
The attachment is 'Hello text attachment!' -- 22 bytes. Thanks!
from appcenter-sdk-react-native.
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.
Sure, here is a sample application that demonstrates the issue:
https://github.com/orderfactory/react-native-app-center
Thanks!
from appcenter-sdk-react-native.
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)
- [iOS] App Hanging plcrash::MS::async::dwarf_cfa_state_iterator<T>::next HOT 7
- Have an issue with AppCenterReactNativeCrashesListener.java on android HOT 2
- Could not find com.microsoft.appcenter.reactnative:appcenter-react-native:5.0.0 HOT 2
- Could not resolve com.microsoft.appcenter.reactnative:appcenter-react-native:5.0.0 HOT 6
- Support ES2022 `cause` to track inner exception stack traces HOT 2
- `Crashes.d.ts` type definition is incorrect HOT 2
- gradlew ENOENT when build apk HOT 2
- Regular Expression Denial of Service in debug HOT 3
- 502 Bad Gateway HOT 2
- no known class method for selector 'setDataResidencyRegion:' HOT 6
- The 'pod' command failed with error: The process '/usr/local/lib/ruby/gems/3.0.0/bin/pod' failed with exit code 1 HOT 1
- React-native IOS build issue. "Error installing hermes-engine" HOT 1
- This repo is missing important files
- I can't show crashed snaped code HOT 4
- Disable autolinking for React Native 0.60 and above HOT 5
- Crash in MSACCrashes HOT 1
- Crash analytics data for React-Native ios not getting reported in App-center HOT 13
- Is there a way to get hold of the Session Id? HOT 3
- ** ARCHIVE FAILED ** ##[error]Error: /usr/bin/xcodebuild failed with return code: 65 HOT 3
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 appcenter-sdk-react-native.