[android-components](../../index.md) / [mozilla.components.support.base.ids](../index.md) / [NotificationIds](index.md) / [getIdForTag](./get-id-for-tag.md)

# getIdForTag

`fun getIdForTag(context: <ERROR CLASS>, tag: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`): `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/support/base/src/main/java/mozilla/components/support/base/ids/NotificationIds.kt#L30)

Get a unique notification ID for the provided unique tag.

