Launching an Android app from notification bar : Just after installation -


when install app google play web store through pc web browser on android device. notification, "app installed", seen on notification bar of android device. have seen many apps (linkedin app e.t.c), click on notification launch app itself. how can implement same app? pointers? currently, app, if click on notification open play store app , show uninstall option. dont want :(

i searched "launching app notification bar", talks creating notification (pendingintent) , all. in scenario notification created google play services. how launch app when user click on notification "app installed"?

thank much,

it seems if application not have activity declares intent-filter launcher, notification won't open app , instead open google play listing it.

i'm not sure app does, of time want user can launch anyway. reasons include:

  1. apps in stopped state after being installed , remain in state until launched user. in state, none of application components run.
  2. users may want way see app doing , interact it, if it's limited configuring settings. can leverage other things, provide feedback link.

if app isn't supposed have launcher activity, use packagemanager disable activity after they've opened first time.


Comments