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

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -