Android : Pending Intent Not Firing if the application is not in foreground -
i trying open activity when user clicks on notification
. had issued following intent
pending intent
intent caseintent = new intent(mcontext, loginactivity.class); caseintent.putextra("priority", priority); caseintent.setflags(intent.flag_activity_clear_top | intent.flag_activity_new_task); pendingintent pendingintent = pendingintent.getactivity(mcontext, 0, caseintent, pendingintent.flag_cancel_current | pendingintent.flag_update_current);
but when click on notification, if app not in forground active have specified not opening @ all. wrong intent
?
Comments
Post a Comment