I am sending a booking id with the intent, then the page with detail information should refresh with the data related to that booking id. The problem is that if the user is at the detail page and she gets a notification, the data is not refreshed.
The problem is happening when I add launch mode as SINGLETASK. This is the intent code:
Intent intent = new Intent(getApplicationContext(), MyJobsActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
intent.putExtra("idIs", bookingId);
intent.setAction(bookingId);
pendingIntent = PendingIntent.getActivity(this, 0, intent, PendingIntent.FLAG_UPDATE_CURRENT);
I've tried with a couple of different Intent's flags, but it didn't work either:
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
and
PendingIntent.FLAG_CANCEL_CURRENT