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

resultCode is 0 (e.g. Activity.RESULT_CANCELED) when SMS message is successfully sent on Android #61

Open
chico opened this issue Nov 27, 2018 · 1 comment

Comments

@chico
Copy link

chico commented Nov 27, 2018

When I test on my Android device but when the SMS is sent then the resultCode is always 0 (e.g. Activity.RESULT_CANCELED). Any ideas why?

I log the resultCode in the onActivityResult method.

@Override
    public void onActivityResult(int requestCode, int resultCode, Intent data) {
      if (resultCode == Activity.RESULT_CANCELED) {
        Log.i("APP", "SMS CANCELLED");
      }
      super.onActivityResult(requestCode, resultCode, data);
      SendSMSPackage.getInstance().onActivityResult(requestCode, resultCode, data);
    }
@dancherb
Copy link

dancherb commented Jan 9, 2019

I'm getting this when trying to send to multiple recipients (using Gazfay's code here that fixes a bug with sending to multiple - #35), though a single recipient seems to work fine

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

No branches or pull requests

2 participants