Skip to content

Instantly share code, notes, and snippets.

@markchristopherng
Created October 13, 2018 01:21
Show Gist options
  • Save markchristopherng/37f9ec1755777cc7e197b65494ae7f81 to your computer and use it in GitHub Desktop.
Save markchristopherng/37f9ec1755777cc7e197b65494ae7f81 to your computer and use it in GitHub Desktop.
public void startSmsRetriever() {
SmsRetrieverClient client = SmsRetriever.getClient(getActivity());
Task<Void> task = client.startSmsRetriever();
task.addOnSuccessListener(aVoid -> {
Timber.d("1 Started listening for SMS");
});
task.addOnFailureListener(e -> {
Timber.d("2 Failed listening for SMS");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment