I am using python for amazon SNS for publishing push notifications.
data = { "GCM" : {"data": {"message": "dummy" }}}
jsonData = json.dumps(data)
self.client.publish( TargetArn=targetArn,
Message= jsonData,
MessageStructure='json')
Getting the below error.
Invalid parameter: JSON must contain an entry for 'default' or 'GCM'.
Tried sending it as string and various formats. But this is not working out. What's wrong with the publish?