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

Cancel Scheduled SMS #4

Open
deadcoder0904 opened this issue Sep 28, 2017 · 1 comment
Open

Cancel Scheduled SMS #4

deadcoder0904 opened this issue Sep 28, 2017 · 1 comment

Comments

@deadcoder0904
Copy link
Contributor

This feature & #3 open various real world use cases for an app

If u are busy & can't implement any features plz point me to the right direction, I would give it a shot

I did Android 2 years ago but still don't know nothing about it so I might or might not succeed

@ajaysaini-sgvu
Copy link
Owner

ajaysaini-sgvu commented Sep 29, 2017

You have to set the different unique id to the pending intent and cancel the pending intent against id.

Something like this:

PendingIntent pendingIntent = PendingIntent.getBroadcast(context, System.currentTimeMillis(), intent, 0);

To cancel it, do something like https://stackoverflow.com/a/9823991/2455259

I will accept your PR request if you can make change in this package too. Thanks. Happy Coding!

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