Skip to content

Instantly share code, notes, and snippets.

@ChrisFlannagan
Created August 5, 2017 00:47
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 ChrisFlannagan/8ce46cfd02ab32a291bbeb026624f2a7 to your computer and use it in GitHub Desktop.
Save ChrisFlannagan/8ce46cfd02ab32a291bbeb026624f2a7 to your computer and use it in GitHub Desktop.
var page;
var observable = require("data/observable");
var pageData = new observable.Observable();
exports.loaded = function(args) {
page = args.object;
var pushPlugin = require("nativescript-push-notifications");
var self = pageData;
// All the pushPlugin code you copied from the readme.md at the push notifications repo
page.bindingContext = pageData;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment