Created
October 11, 2018 18:09
-
-
Save netomarin/478fac5b706d491e1d16bb6f0359ef0d to your computer and use it in GitHub Desktop.
Finish push notification setup
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
app.intent('finish_exchange_rate_setup_push', (conv, params) => { | |
if (conv.arguments.get('PERMISSION')) { | |
//const userID = conv.user.id; | |
const userID = conv.arguments.get('UPDATES_USER_ID'); | |
// code to save intent and userID in your db | |
conv.close(`Ok, I'll start alerting you.`); | |
} else { | |
conv.close(`Ok, I won't alert you.`); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment