2 Commits

Author SHA1 Message Date
d12719be22 Added starting message to verify pushover config 2017-11-14 20:20:03 -06:00
382e3dce31 Merge pull request #1 from philskents/addPushNotifications
Added push notification support to app
2017-11-14 20:07:53 -06:00

View File

@ -183,6 +183,11 @@ function displayStoresAvailable(storesAvailable) {
console.log(storesAvailableStr); console.log(storesAvailableStr);
} }
// Build start message
const kickoff = {
message: 'Starting iPhone X hunt',
}
// Build the message // Build the message
const msg = { const msg = {
message: 'iPhone X stock available nearby!', message: 'iPhone X stock available nearby!',
@ -197,6 +202,12 @@ const msg = {
* *
* Continuously check for the device availability until it is available somewhere. * Continuously check for the device availability until it is available somewhere.
*/ */
p.send (kickoff, function (err, result){
if (err) {
throw err;
}
})
async function requestLoop() { async function requestLoop() {
// Fetch the storesAvailable array. // Fetch the storesAvailable array.
const storesAvailable = await getStoresAvailable(); const storesAvailable = await getStoresAvailable();