FCLT#60353 Notificaties nieuwe App via Firebase

svn path=/Website/branches/v2019.2/; revision=45514
This commit is contained in:
Jos Groot Lipman
2020-01-20 14:31:12 +00:00
parent 7a7fe8608a
commit df29d6954b
3 changed files with 7 additions and 6 deletions

View File

@@ -19,7 +19,7 @@ var JSON_Result = true;
protectRequest.validateToken(); protectRequest.validateToken();
var msg = "Facilitor {0} test notification\nSent from {1}\nSent to {2} ({3})\nSubmitted at {4}".format(customerId, HTTP.urlzelf(), user.naam(), user_key, toDateTimeString(new Date(), true)); var msg = "Facilitor {0} test notification\nSent from {1}\nSent to {2} ({3})\nSubmitted at {4}".format(customerId, HTTP.urlzelf(), user.naam(), user_key, toDateTimeString(new Date(), true));
var puo_result = putorders.sendAPP(user_key, msg); var puo_result = putorders.sendAPP(user_key, msg, "appl/pda/user_info.asp");
var result = { success: true }; var result = { success: true };

View File

@@ -69,11 +69,11 @@ var putorders = {
return result; return result;
}, },
sendAPP: sendAPP:
function _sendAPP(prs_key, msg) function _sendAPP(prs_key, msg, url)
{ {
var hook = putorders._puo_hook(); var hook = putorders._puo_hook();
__Log("APP message {0} to {1}".format(msg, prs_key)); __Log("APP message {0} to {1} with url {2}".format(msg, prs_key, url));
var result = hook.puo_sendAPP(prs_key, msg); var result = hook.puo_sendAPP(prs_key, msg, url);
hook = null; hook = null;
return result; return result;
} }

View File

@@ -48,6 +48,7 @@
<method name="puo_sendAPP"> <method name="puo_sendAPP">
<PARAMETER name="prs_key"/> <PARAMETER name="prs_key"/>
<PARAMETER name="msg"/> <PARAMETER name="msg"/>
<PARAMETER name="url"/>
</method> </method>
</public> </public>
@@ -202,10 +203,10 @@ function puo_sendSMS(telnr, msg)
} }
// Vanuit ASP mgt/aut_app_test_notification.asp // Vanuit ASP mgt/aut_app_test_notification.asp
function puo_sendAPP(prs_key, msg) function puo_sendAPP(prs_key, msg, url)
{ {
Log2File(1, "\n====== Sending APP (" + toDateTimeString(new Date()) + ")"); Log2File(1, "\n====== Sending APP (" + toDateTimeString(new Date()) + ")");
return sendAPP( prs_key, msg, "", {}) return sendAPP( prs_key, msg, url, {})
} }