Browse Source

@updating readme on notifications

halphass 7 years ago
parent
commit
76f619ec44
1 changed files with 7 additions and 6 deletions
  1. 7 6
      README.md

+ 7 - 6
README.md

@@ -99,11 +99,6 @@ Error: CocoaPods was not found. Please install version 1.0.1 or greater from htt
 
 Occore installare `CocoaPods` come descritto sulla [documentazione del plugin](https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/INSTALLATION.md#ios-details)
 
-## TODO, ISSUE e FEATURE ##
-
-Usiamo l'[issue tracker](https://git.lattuga.net/hacklabbo/Ilovexm24/issues) non il wiki.
-
-
 ## PARTE NOTIFICHE ##
 ### NUOVO PAYLOAD DI NOTIFICA RICEVUTO DALL'APP ### 
 
@@ -138,6 +133,7 @@ dalla pagina https://xm.bus.pm/#!/alert è funzionante, la si può usare come sa
 e la parte sms per il momento è disabilitata, ma la notifica dovrebbe arrivare a tutte le app.
 
 da curl invece si può mandare "data"
+
     curl -X POST -H "Content-Type: application/json" -H "Cache-Control: no-cache" -d '{"title":"TEST TITLE","message":"Test Message!","topic_id":1,"sms":false,"type":"event","url":"http://www.ecn.org/xm24/evento/legge-reggionale-urbanistica/?instance_id=31510","data":{"id":31510}}' "https://xm.bus.pm/api/a/c"
 
 l'indirizzo del POST con curl è
@@ -159,4 +155,9 @@ il payload mandato è
     
 gli header
 
-    -H "Content-Type: application/json" -H "Cache-Control: no-cache"
+    -H "Content-Type: application/json" -H "Cache-Control: no-cache"
+    
+## TODO, ISSUE e FEATURE ##
+
+Usiamo l'[issue tracker](https://git.lattuga.net/hacklabbo/Ilovexm24/issues) non il wiki.
+