Android documentation about PendingIntent says:

For security reasons, the Intent you supply here should almost always be an explicit intent, that is specify an explicit component to be delivered to through Intent.setClass

It says almost always, is there a scenario when it is ok to include an implicit intent inside of a pending intent?

  • 1
    It is strongly recommended that the PendingIntent should encapsulate explicit intent as the intent will be used to interact with the application component as if it is the other component of the same application. However, in the scenario where the listening component is not performing any security-sensitive task it will be okay to include an implicit intent in a PendingIntent. – Shiv Sahni Mar 29 '18 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.