I am having hard time understanding a basic concept as to how <intent-filter>
handles BroadCastReceiver .Using below piece of code I have set a WakeFullBroadCastReciever which handles any downstream messages.My code runs fine and I am able to receive messages from GCM,but conceptually how is <receiver>
able to recognize which app to open.No where in the flow diagram Google took my packageName inorder to match <category android:name>
.Where am i conceptually going wrong and how is gcm handling this for two apps with gcm service on a device.
<receiver
android:name=".GcmBroadcastReceiver"
android:permission="com.google.android.c2dm.permission.SEND" >
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<action android:name="com.google.android.c2dm.intent.REGISTRATION" />
<category android:name="com.gcmexample" />
</intent-filter>
</receiver>