This message was deleted.
# android
s
This message was deleted.
😶 1
s
@Tower Guidev2 Share the code snippet what’s you are tried
😄 1
👇 1
t
my current android application produces local notifications when the user clicks on one of these notifications I show a web site page that holds the full details of the notification content item this web site is hosted in the devices web browser not my application when the user navigates "Back" or "Up" from the browser I wish the user to be taken to one of my apps screens I build the notifications pendingIntent as follows:
Copy code
val pendingIntent = TaskStackBuilder.create(context).run {
    addNextIntentWithParentStack(TheIntentToNavigateBackTo)
    addNextIntent(TheIntentToShowWebPage)
    getPendingIntent(0, PendingIntent.FLAG_CANCEL_CURRENT or PendingIntent.FLAG_IMMUTABLE)
}

val builder = NotificationCompat.Builder(context, CHANNEL_ID)
    .setSmallIcon(R.drawable.stacks)
    .setContentTitle("${data.Name} ${context.getString(R.string.notification_title)}")
    .setContentText(data.title)
    .setPriority(NotificationCompat.PRIORITY_DEFAULT)
    .setContentIntent(pendingIntent)
    .setLocalOnly(true)
    .setAutoCancel(true
@Suraj Bahadur i am supposed to set the parent activity in the manifest as detailed in the docs however when the detail is hosted by the devices web browser how should i set
android:parentActivityName
? https://developer.android.com/develop/ui/views/notifications/navigation#define_your_apps_activity_hierarchy