You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li>The 3rd-party server sends a message to GCM server.</li>
177
177
<li>The GCM server sends the message to the device.</li>
178
-
<li>The GCM client receives the message and queries Package Manager, which returns a "package not found" error.</li>
178
+
<li>The GCM client receives the message and queries Package Manager about whether there are broadcast receivers configured to receive it, which returns <code>false</code>.
179
+
</li>
179
180
<li>The GCM client informs the GCM server that the application was uninstalled.</li>
180
181
<li>The GCM server marks the registration ID for deletion.</li>
181
182
<li>The 3rd-party server sends a message to GCM.</li>
Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_TO_GCM_REGISTRATION"><CODE>INTENT_TO_GCM_REGISTRATION</CODE></A> to get the application
181
-
id.</TD>
180
+
Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_TO_GCM_REGISTRATION">"com.google.android.c2dm.intent.REGISTER"</A> to get the
Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_REGISTRATION_CALLBACK"><CODE>INTENT_FROM_GCM_REGISTRATION_CALLBACK</CODE></A> to indicate
189
+
Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_REGISTRATION_CALLBACK">"com.google.android.c2dm.intent.REGISTRATION"</A> to indicate
Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_MESSAGE">"com.google.android.c2dm.intent.RECEIVE"</A> to indicate which
199
+
sender (Google API project id) sent the message.</TD>
Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_REGISTRATION_CALLBACK"><CODE>INTENT_FROM_GCM_REGISTRATION_CALLBACK</CODE></A> to indicate
207
+
Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_REGISTRATION_CALLBACK">"com.google.android.c2dm.intent.REGISTRATION"</A> to indicate
199
208
the registration id when the registration succeeds.</TD>
Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_TO_GCM_REGISTRATION"><CODE>INTENT_TO_GCM_REGISTRATION</CODE></A> to indicate the sender
208
-
account (a Google email) that owns the application.</TD>
216
+
Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_TO_GCM_REGISTRATION">"com.google.android.c2dm.intent.REGISTER"</A> to indicate which
217
+
senders (Google API project ids) can send messages to the application.</TD>
Type of message present in the <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_MESSAGE"><CODE>INTENT_FROM_GCM_MESSAGE</CODE></A> intent.</TD>
225
+
Type of message present in the <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_MESSAGE">"com.google.android.c2dm.intent.RECEIVE"</A> intent.</TD>
Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_REGISTRATION_CALLBACK"><CODE>INTENT_FROM_GCM_REGISTRATION_CALLBACK</CODE></A> to indicate
241
+
Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_REGISTRATION_CALLBACK">"com.google.android.c2dm.intent.REGISTRATION"</A> to indicate
233
242
that the application has been unregistered.</TD>
234
243
</TR>
235
244
<TRBGCOLOR="white" CLASS="TableRowColor">
@@ -388,8 +397,8 @@ <H2>
388
397
<PRE>
389
398
public static final java.lang.String <B>EXTRA_SENDER</B></PRE>
390
399
<DL>
391
-
<DD>Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_TO_GCM_REGISTRATION"><CODE>INTENT_TO_GCM_REGISTRATION</CODE></A> to indicate the sender
392
-
account (a Google email) that owns the application.
400
+
<DD>Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_TO_GCM_REGISTRATION">"com.google.android.c2dm.intent.REGISTER"</A> to indicate which
401
+
senders (Google API project ids) can send messages to the application.
393
402
<P>
394
403
<DL>
395
404
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.google.android.gcm.GCMConstants.EXTRA_SENDER">Constant Field Values</A></DL>
@@ -401,8 +410,8 @@ <H2>
401
410
<PRE>
402
411
public static final java.lang.String <B>EXTRA_APPLICATION_PENDING_INTENT</B></PRE>
403
412
<DL>
404
-
<DD>Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_TO_GCM_REGISTRATION"><CODE>INTENT_TO_GCM_REGISTRATION</CODE></A> to get the application
405
-
id.
413
+
<DD>Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_TO_GCM_REGISTRATION">"com.google.android.c2dm.intent.REGISTER"</A> to get the
414
+
application info.
406
415
<P>
407
416
<DL>
408
417
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.google.android.gcm.GCMConstants.EXTRA_APPLICATION_PENDING_INTENT">Constant Field Values</A></DL>
@@ -414,7 +423,7 @@ <H2>
414
423
<PRE>
415
424
public static final java.lang.String <B>EXTRA_UNREGISTERED</B></PRE>
416
425
<DL>
417
-
<DD>Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_REGISTRATION_CALLBACK"><CODE>INTENT_FROM_GCM_REGISTRATION_CALLBACK</CODE></A> to indicate
426
+
<DD>Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_REGISTRATION_CALLBACK">"com.google.android.c2dm.intent.REGISTRATION"</A> to indicate
418
427
that the application has been unregistered.
419
428
<P>
420
429
<DL>
@@ -427,7 +436,7 @@ <H2>
427
436
<PRE>
428
437
public static final java.lang.String <B>EXTRA_ERROR</B></PRE>
429
438
<DL>
430
-
<DD>Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_REGISTRATION_CALLBACK"><CODE>INTENT_FROM_GCM_REGISTRATION_CALLBACK</CODE></A> to indicate
439
+
<DD>Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_REGISTRATION_CALLBACK">"com.google.android.c2dm.intent.REGISTRATION"</A> to indicate
431
440
an error when the registration fails. See constants starting with ERROR_
432
441
for possible values.
433
442
<P>
@@ -441,7 +450,7 @@ <H2>
441
450
<PRE>
442
451
public static final java.lang.String <B>EXTRA_REGISTRATION_ID</B></PRE>
443
452
<DL>
444
-
<DD>Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_REGISTRATION_CALLBACK"><CODE>INTENT_FROM_GCM_REGISTRATION_CALLBACK</CODE></A> to indicate
453
+
<DD>Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_REGISTRATION_CALLBACK">"com.google.android.c2dm.intent.REGISTRATION"</A> to indicate
445
454
the registration id when the registration succeeds.
446
455
<P>
447
456
<DL>
@@ -454,7 +463,7 @@ <H2>
454
463
<PRE>
455
464
public static final java.lang.String <B>EXTRA_SPECIAL_MESSAGE</B></PRE>
456
465
<DL>
457
-
<DD>Type of message present in the <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_MESSAGE"><CODE>INTENT_FROM_GCM_MESSAGE</CODE></A> intent.
466
+
<DD>Type of message present in the <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_MESSAGE">"com.google.android.c2dm.intent.RECEIVE"</A> intent.
458
467
This extra is only set for special messages sent from GCM, not for
459
468
messages originated from the application.
460
469
<P>
@@ -482,13 +491,26 @@ <H2>
482
491
<DL>
483
492
<DD>Number of messages deleted by the server because the device was idle.
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.google.android.gcm.GCMConstants.EXTRA_TOTAL_DELETED">Constant Field Values</A></DL>
489
498
</DL>
490
499
<HR>
491
500
501
+
<ANAME="EXTRA_FROM"><!-- --></A><H3>
502
+
EXTRA_FROM</H3>
503
+
<PRE>
504
+
public static final java.lang.String <B>EXTRA_FROM</B></PRE>
505
+
<DL>
506
+
<DD>Extra used on <AHREF="../../../../com/google/android/gcm/GCMConstants.html#INTENT_FROM_GCM_MESSAGE">"com.google.android.c2dm.intent.RECEIVE"</A> to indicate which
507
+
sender (Google API project id) sent the message.
508
+
<P>
509
+
<DL>
510
+
<DT><B>See Also:</B><DD><AHREF="../../../../constant-values.html#com.google.android.gcm.GCMConstants.EXTRA_FROM">Constant Field Values</A></DL>
0 commit comments