Yes, it is android java application. On MainActivity it initialize sentry by DSN
Context ctx = this.getApplicationContext();
Sentry.init("dsn", new AndroidSentryClientFactory(ctx));
after this i open webview, which communicates with android by JavascriptInterface, from where i call MainActivity functions. Any of this call is automatically separated thread, if the exception raise during this call, uncaught exception is never sent to sentry.
I also have in root directory sentry.properties in app directory, but this doesnt work. DSN is never found so i expect that sentry never found this file.
In app/build.gradle i initialize sentry like this
apply plugin: 'io.sentry.android.gradle'
sentry {
// Disables or enables the automatic configuration of proguard
// for Sentry. This injects a default config for proguard so
// you don't need to do it manually.
autoProguardConfig true
// Enables or disables the automatic upload of mapping files
// during a build. If you disable this you'll need to manually
// upload the mapping files with sentry-cli when you do a release.
autoUpload true
}
@24gate I’d first try to manually capture and send an error to Sentry to make sure your Sentry init and setup is correct (I’m assuming you are not using the literal "dsn" and using your actual DSN, otherwise there’s your problem ).
For the sentry.properties file not being picked up, I’d investigate your build pipeline (Gradle settings etc). For the exception not being reported, I am hoping someone else from the forums would jump and help as this is the limit for my Java and Android knowledge