One app with multiple 3rd party servers

16 views
Skip to first unread message

android_dev

unread,
Aug 3, 2010, 2:27:32 PM8/3/10
to android-c2dm
Can one app register with multiple 3rd party servers? If so, how to
identify that the registration result came from a particular 3rd party
server?

Roman Nurik

unread,
Aug 3, 2010, 2:36:57 PM8/3/10
to androi...@googlegroups.com
If by multiple servers, you literally mean, multiple machines, then sure -- each machine simply needs to have a client login token (can be the same one) for the sender account. You can pass info on which server sent the message using the arbitrary data fields (...&data.fromserver=foo1)

Roman

android_dev

unread,
Aug 3, 2010, 3:58:37 PM8/3/10
to android-c2dm
Ok, which app server sent the push message can be identified using the
arbitrary data fields in the message.

If one app sends simultaneous multiple
com.google.android.c2dm.intent.REGISTER intents (with same app_id and
a different sender_id) to request registration with C2DM for multiple
app servers, how to identify that a registration result received on
the app is for a particular app server?

The registration result com.google.android.c2dm.intent.REGISTRATION
seems to have only the "registration_id" extra. How can this result be
used to identify that it is for a particular app server?

android_dev

unread,
Aug 10, 2010, 3:31:26 PM8/10/10
to android-c2dm
Any ideas how one app can register and handle registration results
from the C2DM cloud for multiple 3rd party app servers?

If the app sets a server identifier (url or something) in the extras
for the com.google.android.c2dm.intent.REGISTER intent or in the
extras for the "app" PendingIntent, then could C2DM return the same in
the registration result com.google.android.c2dm.intent.REGISTRATION
intent?

Thanks!
Reply all
Reply to author
Forward
0 new messages