Skip to content
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

[Android] : method addObserver must be called on the main thread. #259

Closed
pritamsoni-hsr opened this issue May 23, 2021 · 7 comments
Closed
Labels
question Further information is requested

Comments

@pritamsoni-hsr
Copy link

pritamsoni-hsr commented May 23, 2021

Describe the bug
stripe android not working in an existing project, followed all the instructions as given.

Screenshots
Screenshot_1621796929

Desktop (please complete the following information):

  • OS: M1, MacOS, 10.15, node 14.15

Smartphone (please complete the following information):

  • Device: Android emulator, android Q, API version 30

react-native - 0.63

Additional context
Add any other context about the problem here.

@arekkubaczkowski
Copy link
Collaborator

could you share some more details? When it occurs? once application is started or after calling some stripe method?

@pritamsoni-hsr
Copy link
Author

when the application starts.

@arekkubaczkowski
Copy link
Collaborator

so it occurs even if you don't init sdk by StripeProvider or initStripe method correct?

@pritamsoni-hsr
Copy link
Author

pritamsoni-hsr commented May 24, 2021

nah, I just added the sdk, npm i, then gradlew bundleDebug, updated build.gradle to 4.x.x.
it builds and when I try to run the code, it loads the js, tried to console log NativeModuels.StripeSdk, js code never gets executed. this is the only screen that I see.
my App code is just this.

export default () => (<Text>Hello World!</Text>)

some references that I found

segmentio/analytics-react-native#255, see this segmentio/analytics-react-native@dac753a

dji-sdk/Mobile-SDK-Android#772

StackOverflow

@arekkubaczkowski
Copy link
Collaborator

can you run application via android studio and copy paste some more context of this error from the logcat?

@thorsten-stripe thorsten-stripe added the question Further information is requested label May 25, 2021
@pritamsoni-hsr
Copy link
Author

Ok guys, the issue was with expo-notifications, I was using an older version.
Closing this issue.

@miradario
Copy link

I had expo-notification 0.7.2, upgrade it to 0.8.2 works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants