hi, i have an example how i use the api and its working. remember to encode your api secret key
example
just an example
api-key="123456789123456789"
ecodeapikey="MTIzNDU2Nzg5MTIzNDU2Nzg5"
you have to use your encodeApiKey in your header
POST /api/v1/push HTTP/1.1
Host: push.ionic.io
Authorization: Basic MTIzNDU2Nzg5MTIzNDU2Nzg5
X-Ionic-Application-Id: 6d5a8318
Content-Type: application/json
Cache-Control: no-cache
{ "tokens":[ "APA91bHeSALts9tTeTA9v0po-VNYLIlo8CQDhvDuIzLkc36E7VX5FcnOg8AF8w1WuJF2wLQ9BqBviluDA_pd69kP0MPPLEQrSrXwBCl5fIyNzbkLJRgQCkKgitxVfojiMkHFLvhuC_MA" ], "notification":{ "alert":"test alert", "android":{ "collapseKey":"foo", "delayWhileIdle":true, "timeToLive":600, "payload":{"message": "matricula disponible","title":"ABC","key1":"value", "key2":"value", "$state":"tab.chat-detail" , "$stateParams": "{\"placa\": 19}"} } } }