This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.deliveryUpdate = functions.database.ref('/orders/{pushId}/deliveryStatus').onWrite(snapshot => { | |
// Fires up , if Delilery status is Changed, to know Whihch Key | |
console.log("PushId/Parent Key: "+ snapshot.data.ref.parent.key); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected Void doInBackground(Void... params) { | |
String user = "username=" + "[email protected]"; | |
String hash = "&hash=" + "d28037624ea694bee8ff95719bf8995bedde1585"; | |
String api = "&apiKey" + "A3kqyA4v4UA-6aqjTecsmcr7AhtnB1m1taU4ee8ywG"; | |
String message = "&message=" + "This is your message"; | |
String sender = "&sender=" + "KL"; | |
String numbers = "&numbers=" + "918675753534"; | |
try { | |
// Send data |