{"action":"created","issue":{"url":"https://api.github.com/repos/meteor-useraccounts/core/issues/446","labels_url":"https://api.github.com/repos/meteor-useraccounts/core/issues/446/labels{/name}","comments_url":"https://api.github.com/repos/meteor-useraccounts/core/issues/446/comments","events_url":"https://api.github.com/repos/meteor-useraccounts/core/issues/446/events","html_url":"https://github.com/meteor-useraccounts/core/issues/446","id":91542950,"number":446,"title":"ensureSignedIn plugin is not working in android-device app.","user":{"login":"candicom","id":1256552,"avatar_url":"https://avatars.githubusercontent.com/u/1256552?v=3","gravatar_id":"","url":"https://api.github.com/users/candicom","html_url":"https://github.com/candicom","followers_url":"https://api.github.com/users/candicom/followers","following_url":"https://api.github.com/users/candicom/following{/other_user}","gists_url":"https://api.github.com/users/candicom/gists{/gist_id}","starred_url":"https://api.github.com/users/candicom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/candicom/subscriptions","organizations_url":"https://api.github.com/users/candicom/orgs","repos_url":"https://api.github.com/users/candicom/repos","events_url":"https://api.github.com/users/candicom/events{/privacy}","received_events_url":"https://api.github.com/users/candicom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-28T02:25:31Z","updated_at":"2015-08-31T19:54:21Z","closed_at":null,"body":"Router.plugin('ensureSignedIn', {\r\n    only: ['set']\r\n});\r\n\r\nAccountsTemplates.configureRoute('signIn', {\r\n  template: 'accounts'\r\n});\r\n\r\nAnd \r\n\r\nmeteor run android-device -p 3000\r\n\r\nAnd Application shows up on my android mobile phone.\r\n\r\nBut the link to /set is just appeared without login.\r\n\r\nSo I guess ensureSignedIn plugin is not working in cordova app.\r\n\r\nAnd I changed to\r\n\r\nRouter.route('set', {\r\n  name: 'set',\r\n  onBeforeAction: function() {\r\n    if (! Meteor.userId()) {\r\n      Router.go('/sign-in');\r\n    } else {\r\n      this.next();\r\n    }\r\n  }\r\n});\r\n\r\nAccountsTemplates.configureRoute('signIn', {\r\n  template: 'accounts'\r\n});\r\n\r\nBut also It has an error.\r\n\r\nI20150628-11:14:24.560(9) (android:http://meteor.local/packages/useraccounts_core.js:988) Uncaught Error: changePwd route configured but enablePasswordChange set to false!\r\n\r\n\r\nFinally, I set these... I could see on my android device.\r\n\r\nRouter.route('sign-in', {\r\n  name: 'signIn',\r\n  template: 'accounts'\r\n});\r\n\r\n<template name=\"accounts\">\r\n\r\n    {{>mainMenu}}\r\n\r\n    {{>atForm}}\r\n\r\n</template>\r\n\r\n//AccountsTemplates.configureRoute('signIn', {\r\n//  template: 'accounts'\r\n//}); <- I removed it.\r\n\r\nSo in conclusion, AccountsTemplates.configureRoute is not working on android-device cordova app.\r\nensureSignedIn also doesn't work. It also some kind of Route.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/meteor-useraccounts/core/issues/comments/136482183","html_url":"https://github.com/meteor-useraccounts/core/issues/446#issuecomment-136482183","issue_url":"https://api.github.com/repos/meteor-useraccounts/core/issues/446","id":136482183,"user":{"login":"elie222","id":3090527,"avatar_url":"https://avatars.githubusercontent.com/u/3090527?v=3","gravatar_id":"","url":"https://api.github.com/users/elie222","html_url":"https://github.com/elie222","followers_url":"https://api.github.com/users/elie222/followers","following_url":"https://api.github.com/users/elie222/following{/other_user}","gists_url":"https://api.github.com/users/elie222/gists{/gist_id}","starred_url":"https://api.github.com/users/elie222/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elie222/subscriptions","organizations_url":"https://api.github.com/users/elie222/orgs","repos_url":"https://api.github.com/users/elie222/repos","events_url":"https://api.github.com/users/elie222/events{/privacy}","received_events_url":"https://api.github.com/users/elie222/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T19:54:21Z","updated_at":"2015-08-31T19:54:21Z","body":"For me it suddenly started working. Not sure why. Had to download the app from the server to start working maybe?"}}