Getting wrong messages for Android GCM push notifications

view story

http://stackoverflow.com – I have built 3 versions of the same app using the same code base but using different package names and layouts. One of the features of my app is that it receives push notification messages. Now, i have installed all 3 apps on my device. So when the push notification comes, i find that it invokes the GCMIntentService onMessage() method of all 3 apps??? Why is this happening? I am a confused. Because i have used different package names for my apps. Because of this i get 3 notifications for a single notification from the server. Please help! Thanks! (HowTos)