Open tylerablake opened 2 years ago
It looks like it was angry with Application.android.context
inside of nssentry.android
so I made this change:
io.sentry.android.core.SentryAndroid.init(Application.android.context,
to
io.sentry.android.core.SentryAndroid.init(Utils.android.getApplicationContext(),
Then I got an error in convertToNativeStacktrace(stack)
because the stack
was undefined. Maybe that is because I'm missing some configuration for Android though?
@tylerablake thanks i ll fix the start issues.
About the convertToNativeStacktrace
error can you add logs to see first the stacktrace of where it is called from and if possible the original event
for which convertToNativeStacktrace
is called. i think stack
should never be null. Though i will handle it
@tylerablake juste released 3.1.3
@farfromrefug Thanks for helping with this so quickly!
I'm trying to get some info for you but I'm only getting {}
for stack
from the convertToNativeStacktrace(stack)
method. Unable to get to the event info but I'll keep trying.
I'm not sure if this what we're looking for but when I set debug: true
in the Sentry.init()
options, on Android I get this in the console when trying to send something up to Sentry.
JS: Sentry Logger [Warn]: Event dropped due to being a duplicate of previously captured event.
JS: Sentry Logger [Error]: SentryError: An event processor returned null, will not send event.
If I set debug:true
then it doesn't throw an error but nothing is sent up to Sentry. On iOS I do not see this log and the events are sent to Sentry successfully.
@tylerablake your events are not sent on android?
@farfromrefug Yeah that's what it looks like
Make sure to check the demo app(s) for sample usage
Make sure to check the existing issues in this repository
If the demo apps cannot help and there is no issue for your problem, tell us about it
Please, ensure your title is less than 63 characters long and starts with a capital letter.
Which platform(s) does your issue occur on?
Please, provide the following version numbers that your issue occurs with:
CLI: 8.2.2
Cross-platform modules: (check the 'version' attribute in the
node_modules/tns-core-modules/package.json
file in your project)Runtime(s):
Plugin(s): (look for the version numbers in the
package.json
file of your project and paste your dependencies and devDependencies here)I've tried with the following version of this plugin with the same results:
Please, tell us how to recreate the issue in as much detail as possible.
Describe the steps to reproduce it.
Inside of the
main.ts
file, runs and uploads messages to Sentry on iOS.On Android I get the following error on launch:
Is there any code involved?