-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App getting crashed for Android release builds because of bugsnag integration. React native app #2162
Comments
last time i remember the issue i got bcs of bugsnag for android so i removed the bugsnag for android. now i tried again but this time not catching crashes |
Hi @, Could you please share some more details on the crash you are seeing (e.g. a stacktrace) so that we can investigate this further? It would also be useful if you could let us know which Android SDK your app is running in when it crashes? Could you also please let us know how you have setup BugSnag in your app? For instance, did you use the If any of these details could include sensitive information, please feel free to share this with us directly via support@bugsnag.com rather than posting it on this issue. |
allprojects {
/**
// background-geolocation react {
} /**
def enableProguardInReleaseBuilds = false def enableShrinkResource = false /**
android {
} dependencies {
} apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
import com.bugsnag.android.Bugsnag class MainApplication : Application(), ReactApplication { override val reactNativeHost: ReactNativeHost =
override fun onCreate() { |
I will try to create a seperate github branch where if i can reproduce this . then i will share that project with you guys |
@vksgautam1986 I redacted the value of |
if i remove bugsnag , it works fine for android. for ios its working fine with bugsnag for release build
RN 0.73.8
Bugsnag -- latest
those crashes for android did not come in bugsnag portal also.
Package json
{
"name": "appname",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint .",
"all": "npm i --f && cd ios && pod deintegrate && pod install && cd ..",
"clean": "cd android && ./gradlew clean && cd ..",
"debug-build": "react-native bundle --dev false --platform android --entry-file index.js --bundle-output ./android/app/src/main/assets/index.android.bundle --assets-dest ./android/app/src/main/res && cd android && ./gradlew assembleDebug && cd ..",
"release-build": "react-native bundle --dev false --platform android --entry-file index.js --bundle-output ./android/app/src/main/assets/index.android.bundle --assets-dest ./android/app/src/main/res && rm -rf android/app/src/main/res/drawable-* && rm -rf android/app/src/main/res/raw/* && cd android && ./gradlew assembleRelease && cd ..",
"postinstall": "patch-package",
"bugsnag:create-build": "bugsnag-cli create-build",
"bugsnag:upload-android-ndk": "bugsnag-cli upload android-ndk android/",
"bugsnag:upload-android-proguard": "bugsnag-cli upload android-proguard android/",
"bugsnag:upload-rn-android": "bugsnag-cli upload react-native-android",
"bugsnag:upload-dsym": "bugsnag-cli upload dsym ios/",
"bugsnag:upload-rn-ios": "bugsnag-cli upload react-native-ios",
"bugsnag:upload": "bugsnag-cli upload android-ndk android/ && bugsnag-cli upload android-proguard android/ && bugsnag-cli upload react-native-android && bugsnag-cli upload dsym ios/ && bugsnag-cli upload react-native-ios"
},
"dependencies": {
"@bugsnag/react-native": "latest",
"@react-native-async-storage/async-storage": "^1.23.1",
"@react-native-community/datetimepicker": "^8.1.0",
"@react-native-community/netinfo": "^11.3.2",
"@react-native-firebase/app": "^20.1.0",
"@react-native-firebase/messaging": "^20.1.0",
"@react-navigation/bottom-tabs": "^6.5.20",
"@react-navigation/native": "^6.1.17",
"@react-navigation/native-stack": "^6.9.26",
"@shopify/flash-list": "1.6.4",
"appcenter": "^5.0.1",
"appcenter-analytics": "^5.0.1",
"appcenter-crashes": "^5.0.1",
"axios": "^1.7.2",
"geolib": "^3.3.4",
"i18next": "^23.11.5",
"moment": "^2.30.1",
"moment-timezone": "^0.5.45",
"native-base": "^3.4.28",
"patch-package": "^8.0.0",
"react": "18.2.0",
"react-native": "0.73.8",
"react-native-android-location-enabler": "^2.0.1",
"react-native-animatable": "^1.4.0",
"react-native-audio-record": "^0.2.2",
"react-native-background-fetch": "^4.2.5",
"react-native-background-geolocation": "^4.10.0",
"react-native-code-push": "^8.2.2",
"react-native-device-info": "^11.1.0",
"react-native-doc-preview": "^0.2.0",
"react-native-document-picker": "^9.3.0",
"react-native-dropdown-picker": "^5.4.6",
"react-native-file-viewer": "^2.1.5",
"react-native-fs": "^2.20.0",
"react-native-geolocation-service": "^5.3.1",
"react-native-gesture-handler": "2.16.2",
"react-native-image-crop-picker": "^0.41.1",
"react-native-image-picker": "^7.1.2",
"react-native-map-link": "^3.4.1",
"react-native-maps": "1.15.4",
"react-native-material-dropdown-v2-fixed": "^0.11.3",
"react-native-modal-datetime-picker": "^17.1.0",
"react-native-pager-view": "6.3.1",
"react-native-paper": "^5.12.3",
"react-native-permissions": "4.1.5",
"react-native-progress": "^5.0.1",
"react-native-prompt-android": "^1.1.0",
"react-native-radio-buttons-group": "^3.1.0",
"react-native-rate": "^1.2.12",
"react-native-safe-area-context": "4.10.1",
"react-native-screens": "3.31.1",
"react-native-signature-capture": "^0.4.12",
"react-native-simple-radio-button": "^2.7.4",
"react-native-size-matters": "^0.4.2",
"react-native-svg": "^15.3.0",
"react-native-switch-toggle": "^2.2.1",
"react-native-tab-view": "^3.5.2",
"react-native-toggle-calendar": "^1.0.3",
"react-native-vector-icons": "^10.1.0",
"react-native-video": "^5.2.1",
"react-native-video-helper-fork": "^1.0.3",
"react-native-video-player": "^0.14.0",
"react-native-webview": "^13.10.3",
"react-redux": "^9.1.2",
"recyclerlistview": "^4.2.1",
"redux": "^5.0.1",
"redux-devtools-extension": "^2.13.9",
"redux-logger": "^3.0.6",
"redux-persist": "^6.0.0",
"redux-persist-transform-encrypt": "^5.1.1",
"redux-thunk": "2.4.2",
"rn-fetch-blob": "^0.12.0",
"sp-react-native-in-app-updates": "^1.4.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@babel/preset-env": "^7.20.0",
"@babel/runtime": "^7.20.0",
"@bugsnag/cli": "^2.3.0",
"@react-native/babel-preset": "0.73.21",
"@react-native/eslint-config": "0.73.2",
"@react-native/metro-config": "0.73.5",
"@react-native/typescript-config": "0.73.1",
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-test-renderer": "18.2.0",
"typescript": "5.0.4"
},
"engines": {
"node": ">=18"
}
}
The text was updated successfully, but these errors were encountered: