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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -