在onMessage()android中打印整个json数据

时间:2014-10-06 05:08:39

标签: android

我想在广播接收器的onMessage()中打印整个json数据

{
    "apiKey": "b3ca79eb-dede-4c58-a163-cdfbfcc081a4",
    "appKey": "81047fab-715f-47d9-a6cd-cb7e544bb30e",
    "sendAll": true,
    "content": {
        "subject": "Test Lottery",
        "message": "Notification Msg",
        "action": {
            "type": "DEFAULT",
            "data": "url|intent|...",
            "labe": "label"
        },
        "payload": "{'uid':'1','type':'LD'}",
        "sound": "default.caf",
        "badge": "+1"
    }
}

0 个答案:

没有答案