After displaying intent data, if I call edit() on sharedPreferences and set putBoolean("first", false). After few seconds activity can send another notification and then again I will have to set putBoolean("first", true). Now, if user minimize and restores the app, still the intent be fired.
I don't know much about Bundle savedInstanceState parameter, but as per docs, it helps to save instance state by overriding onSaveInstanceState() method.
BTW, I have tried different apps, but all are facing the same problem when app restores.
Also, I want to send multiple notifications such that there should be one icon on status bar, but show multiple notifications in the expended view of status bar. I have seen different applications doing that, but I am not able to do this.