question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Callback is never called.

See original GitHub issue

After following the README guide I’m able to open the camera or the camera roll, but if I chose a picture or take a new one I never got any response in the JS callback.

If I cancel, I DO get the cancel response. I’m debugging the Java code and the onActivityResult method (which I assume should be called after taking a picture or selecting one) is never called.

Any clue on how I can fix this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

20reactions
gianucommented, Apr 4, 2017

@rusfearuth I think I found the fix to my issue.

I added

    public void onActivityResult(int requestCode, int resultCode, Intent data) {
        mReactInstanceManager.onActivityResult(this, requestCode, resultCode, data);
    }

to MyReactActivity and everything works.

Closing this issue.

10reactions
jcurtiscommented, Mar 8, 2018

This info would be real nice to have in the README

Read more comments on GitHub >

github_iconTop Results From Across the Web

on:userEvent callback never called - Zendesk help
Hi, I've implemented the on:userEvent callback for analytics purposes but the analytics event is never received.Are there any known bugs...
Read more >
useEffect callback never called · Issue #17066 · facebook/react
I want to report a bug. My problem is that the callback function I pass to useEffect() is never called in my app....
Read more >
How to Debug 'The "next" callback was never called inside of ...
I am new to Vue and working through some basic tutorials on Vue Mastery. Rather than work with their default data set I...
Read more >
Callback is not called in add_settings_field() when passed as ...
From what I could see, the problem is not with the field callback, but it's the section ID whereby you're setting it to...
Read more >
failure callback function was not called - Microsoft Community
failure callback function was not called in the javascript. below is the javascript code: function GetInfo() { debugger; var id =
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found