{"action":"opened","issue":{"url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/1308","repository_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push","labels_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/1308/labels{/name}","comments_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/1308/comments","events_url":"https://api.github.com/repos/phonegap/phonegap-plugin-push/issues/1308/events","html_url":"https://github.com/phonegap/phonegap-plugin-push/issues/1308","id":184599362,"number":1308,"title":"subscribe/unsubscribe don't seem to be functioning","user":{"login":"mbaggott","id":5018715,"avatar_url":"https://avatars.githubusercontent.com/u/5018715?v=3","gravatar_id":"","url":"https://api.github.com/users/mbaggott","html_url":"https://github.com/mbaggott","followers_url":"https://api.github.com/users/mbaggott/followers","following_url":"https://api.github.com/users/mbaggott/following{/other_user}","gists_url":"https://api.github.com/users/mbaggott/gists{/gist_id}","starred_url":"https://api.github.com/users/mbaggott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbaggott/subscriptions","organizations_url":"https://api.github.com/users/mbaggott/orgs","repos_url":"https://api.github.com/users/mbaggott/repos","events_url":"https://api.github.com/users/mbaggott/events{/privacy}","received_events_url":"https://api.github.com/users/mbaggott/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-22T01:16:22Z","updated_at":"2016-10-22T01:16:22Z","closed_at":null,"body":"### Expected Behaviour\r\nsubscribe/unsuscribe from topic\r\n\r\n### Actual Behaviour\r\npush.subscribe or push.unsubscribe don't execute at all\r\n\r\n### Reproduce Scenario (including but not limited to)\r\nAttempt to call either function in app.js, when platform is ready\r\n\r\n#### Steps to Reproduce \r\nCall function as follows:\r\npush.subscribe('scheduleAndroid', function() {\r\n        console.log('success');\r\n}, function(e) {\r\n    console.log('error:');\r\n    console.log(e);\r\n });\r\n\r\n#### Platform and Version (eg. Android 5.0 or iOS 9.2.1)\r\nAndroid 4.4.4\r\n\r\n#### (Android) What device vendor (e.g. Samsung, HTC, Sony...)\r\nLeapDroid emulator\r\n\r\n#### Cordova CLI version and cordova platform version\r\n\r\n    cordova --version                                    Cordova CLI: 6.3.1\r\n    cordova platform version android                    android 5.2.2\r\n\r\n#### Plugin version\r\n\r\n    cordova plugin version | grep phonegap-plugin-push   1.8.3\r\n\r\n#### Sample Push Data Payload\r\nNote: payload works, and sends to all topics. I am trying to unsubscribe from 'all' and subscribe to an Android only topic, so i can send different payloads to iOS and Android.\r\n{\r\n        \"to\": \"/topics/scheduleAndroid\", //Topic or single device\r\n        \"data\":{\r\n          \"content-available\": \"1\",\r\n          \"title\": \"Notification title\",  //Any value \r\n          \"body\": \"Notification body\"  //Any value \r\n         }\r\n}\r\n#### Sample Code that illustrates the problem\r\nSee steps to reproduce\r\n\r\n#### Logs taken while reproducing problem\r\nNo logs, as using Ionic and cloud9 for development. Observed behaviour is that either function breaks the app.js flow, which will then work if i comment out the push.subscribe or push.unsubscribe functions.\r\nThis may have been functioning a week ago, but i removed the plugin and re-added the latest version yesterday.\r\n"}}
{"actor":{"display_login":"mbaggott"}}