Skip to content

Instantly share code, notes, and snippets.

@netomarin
Created October 11, 2018 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save netomarin/478fac5b706d491e1d16bb6f0359ef0d to your computer and use it in GitHub Desktop.
Save netomarin/478fac5b706d491e1d16bb6f0359ef0d to your computer and use it in GitHub Desktop.
Finish push notification setup
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