Yes, exactly how it works.
However, on the side, note that String tags will be unique to your application package. Example...
String gameId1 = "com.mycompany.mypackage.gameid.abc"; String gameId2 = "com.mycompany.mypackage.gameid.xyz";
The rationale for this is that when canceling, the lines and int must match to identify the notification for cancellation. Many applications are likely to use int 1, 2, 3, etc. Thus, the simpler the string tag, the more likely it is that another application (using simple tags) may accidentally cancel one of your notifications.
In general, this seems unlikely, but unique tags avoid it. It also seems likely that this would be recommended, although I did not know much about this.
source share