Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Instabug.invoke() doesn't seem to work on Android. #28

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

Closed
booboothefool opened this issue Apr 28, 2017 · 6 comments
Closed

Instabug.invoke() doesn't seem to work on Android. #28

booboothefool opened this issue Apr 28, 2017 · 6 comments

Comments

@booboothefool
Copy link

booboothefool commented Apr 28, 2017

I am able to get the floating button to work, but I would like to use my own button with Instabug.invoke(). When called, the prompt options doesn't appear. This is only on Android. iOS is working great.

new RNInstabugReactnativePackage("my_key", MainApplication.this, "button"),

^ Floating blue button appears, pressing it shows the prompt options.

but

new RNInstabugReactnativePackage("my_key", MainApplication.this, "none"),

then

<Button
  onPress={() => Instabug.invoke()}
/>

^ Nothing appears when button is pressed. (Same button works on iOS).

If I understood the setup instructions correctly, iOS requires Instabug.startWithToken(Config.INSTABUG_TOKEN_IOS, Instabug.invocationEvent.none), but Android does not (and the floating button works anyway, just not the manual invoke).

@DevHossamHassan
Copy link
Contributor

Hello @booboothefool,
Thank you for reporting this, That's weird we'll check it and we will get back to you as soon as possible.

@booboothefool
Copy link
Author

booboothefool commented Apr 28, 2017

@DevHossamHassan Sorry, but it seems like there's more to it!

<Button
  onPress={() => Instabug.invoke()}
/>

^ This actually works.

Sorry, I didn't test it earlier. I was actually doing this and figured the behavior would be the same:

  confirmIssuesFeedback() {
    const message = 'If reporting a bug, please provide clear steps to reproduce the bug.';

    Alert.alert('Issues/Feedback', message, [
      { text: 'Got It', onPress: () => Instabug.invoke() },
      { text: 'Cancel', onPress: () => {}, style: 'cancel' },
    ]);
  }

<Button
  onPress={() => this.confirmIssuesFeedback()}
/>

^ For some reason, when using an Alert to invoke, it will not show. Not a big deal however, as I could do without the Alert and just invoke from button. This does work in iOS, however.

@booboothefool
Copy link
Author

booboothefool commented May 3, 2017

Hi, so I discovered the issue is not Alert. It's that I need to call invoke twice for some reason e.g.

Instabug.invoke();  // doesn't show
Instabug.invoke();  // shows

So in my app, user needs to press button twice.

@seantimm
Copy link

seantimm commented Jun 5, 2017

I'm seeing the same issue.

@DevHossamHassan
Copy link
Contributor

DevHossamHassan commented Jul 10, 2017

Hello @seantimm,
Hello @booboothefool,
We fixed this issue in the latest version which is v1.1.6, Please update and give it a try.
Please follow the docs here to install it again in the proper way
Thank you so much for your patience.

salmamali added a commit that referenced this issue Nov 27, 2018
🎨 generalize build.gradle to allow the use of the root project's config
@lock
Copy link

lock bot commented May 19, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants