{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic-cloud/issues/58","repository_url":"https://api.github.com/repos/driftyco/ionic-cloud","labels_url":"https://api.github.com/repos/driftyco/ionic-cloud/issues/58/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic-cloud/issues/58/comments","events_url":"https://api.github.com/repos/driftyco/ionic-cloud/issues/58/events","html_url":"https://github.com/driftyco/ionic-cloud/issues/58","id":179880779,"number":58,"title":"Store Facebook auth Push token?","user":{"login":"atlance01","id":13652692,"avatar_url":"https://avatars.githubusercontent.com/u/13652692?v=3","gravatar_id":"","url":"https://api.github.com/users/atlance01","html_url":"https://github.com/atlance01","followers_url":"https://api.github.com/users/atlance01/followers","following_url":"https://api.github.com/users/atlance01/following{/other_user}","gists_url":"https://api.github.com/users/atlance01/gists{/gist_id}","starred_url":"https://api.github.com/users/atlance01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atlance01/subscriptions","organizations_url":"https://api.github.com/users/atlance01/orgs","repos_url":"https://api.github.com/users/atlance01/repos","events_url":"https://api.github.com/users/atlance01/events{/privacy}","received_events_url":"https://api.github.com/users/atlance01/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-28T20:32:13Z","updated_at":"2016-09-28T20:46:32Z","closed_at":null,"body":"Hey everyone,\r\n\r\nI've spent the last couple days trying to fix this issue. I've got Facebook auth up and running in my app. The users appear as they should in the IO dashboard.\r\n\r\nThen, I've got $ionicPush.register() called on index.html which then saves the token using the bit of code from the docs. But it doesn't ever seem to save the token or possibly there was never one to begin with.\r\n\r\nHere's a bit of my code that is triggered by a button press:\r\n```\r\n`$scope.registerPush = function () {\r\n        console.log('called registerPush');\r\n        $ionicPush.register().then(function(t) {\r\n                console.log('called register');\r\n                $ionicPush.saveToken(t);\r\n                $ionicUser.save();\r\n            }).then(function(t) {\r\n                console.log('Token saved:', t.token);\r\n        });\r\n\r\n    };`\r\n```\r\n\r\nAnyone have any ideas what could be happening? Did I miss something obvious?"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic-cloud/issues/comments/250294460","html_url":"https://github.com/driftyco/ionic-cloud/issues/58#issuecomment-250294460","issue_url":"https://api.github.com/repos/driftyco/ionic-cloud/issues/58","id":250294460,"user":{"login":"atlance01","id":13652692,"avatar_url":"https://avatars.githubusercontent.com/u/13652692?v=3","gravatar_id":"","url":"https://api.github.com/users/atlance01","html_url":"https://github.com/atlance01","followers_url":"https://api.github.com/users/atlance01/followers","following_url":"https://api.github.com/users/atlance01/following{/other_user}","gists_url":"https://api.github.com/users/atlance01/gists{/gist_id}","starred_url":"https://api.github.com/users/atlance01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atlance01/subscriptions","organizations_url":"https://api.github.com/users/atlance01/orgs","repos_url":"https://api.github.com/users/atlance01/repos","events_url":"https://api.github.com/users/atlance01/events{/privacy}","received_events_url":"https://api.github.com/users/atlance01/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T20:46:32Z","updated_at":"2016-09-28T20:46:32Z","body":"I assumed that once I've auth'd with Facebook, that I'd be able to send out push notifications by associating the Facebook user with their push token?\r\n\r\n![screen shot 2016-09-28 at 4 41 56 pm 2](https://cloud.githubusercontent.com/assets/13652692/18931582/c9f7fb9e-859a-11e6-9f7f-bf2f53792563.png)\r\n\r\nHow can I store a push token thats associated with a facebook user? I assumed that would show up in the screen above.\r\n\r\nAlso I never see this log show up in my console:`console.log('Token saved:', t.token);`"}}
{"actor":{"display_login":"atlance01"}}