App shows "push" as title in android overview screen when opened from push notification? -


the app title shows "push" in apps overview screen in android when app opened push notification.

but when opened launcher screen shows proper title. how set title app in overview screen when opening app push notification?

you can change via activitymanager.taskdescription:

https://developer.android.com/reference/android/app/activitymanager.taskdescription.html

from activity context, call:

taskdescription taskdescription = new taskdescription(label, icon, colorprimary); ((activity)this).settaskdescription(taskdescription);

to clarify more: * label - text on card header * icon - left bitmap icon (usually icon looks on 'colorprimary' color * colorprimary - card header color (usually same toolbar color, not necessarily) solution worked me


Comments

Popular posts from this blog

php - trouble displaying mysqli database results in correct order -

depending on nth recurrence of job in control M -

sql server - Cannot query correctly (MSSQL - PHP - JSON) -