I have got a problem with multi line data (data that contains newline \n). These data is beeing encoded for the url call:
collapse_key=<my-collapse_key>®istration_id=<my-registrationd>
&data.text=Line1%0ALine2&data.group=This+is+a+test
I have no problem sending c2dm messages. But when I try to get my string back from the intent, der is no newline sign.
text = (String) intent.getStringExtra("text");
I guess there has been some decoding of the urlstring inside the C2DM Framework and that removed all special charaters?
It would be nice, if somebody can help me or can confirm my guess.
I found another way by modify C2DMReceiver.java as documented custom view for notification bar.
and create layout custom_notification_layout.xml like this
Hope this helps.
Reference: Android SDK Doc