{"action":"created","issue":{"url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/322","labels_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/322/labels{/name}","comments_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/322/comments","events_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/322/events","html_url":"https://github.com/j3k0/cordova-plugin-purchase/issues/322","id":112448662,"number":322,"title":"[Android] Authentication required: plugin -> buy error 6777006","user":{"login":"mcherubin","id":5022868,"avatar_url":"https://avatars.githubusercontent.com/u/5022868?v=3","gravatar_id":"","url":"https://api.github.com/users/mcherubin","html_url":"https://github.com/mcherubin","followers_url":"https://api.github.com/users/mcherubin/followers","following_url":"https://api.github.com/users/mcherubin/following{/other_user}","gists_url":"https://api.github.com/users/mcherubin/gists{/gist_id}","starred_url":"https://api.github.com/users/mcherubin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcherubin/subscriptions","organizations_url":"https://api.github.com/users/mcherubin/orgs","repos_url":"https://api.github.com/users/mcherubin/repos","events_url":"https://api.github.com/users/mcherubin/events{/privacy}","received_events_url":"https://api.github.com/users/mcherubin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-20T20:03:16Z","updated_at":"2015-11-06T10:25:15Z","closed_at":null,"body":"I've this initialization store called after device ready event:\r\n\r\n\tfunction initializeStore() {\r\n\t\r\n\t\tif (!window.store) {\r\n\t\t\tconsole.log('Store not available');\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tstore.verbosity = store.DEBUG;\r\n\t\t\t\r\n\t\tstore.register({\r\n\t\t\tid:    \"12tentativi\",\r\n\t\t\talias: \"12tentativi\",\r\n\t\t\ttype:  store.CONSUMABLE\r\n\t\t});\r\n\t\r\n\t\tstore.when(\"12tentativi\").approved(function(order) {\r\n\t\t\tconsole.log('approved');\r\n\t\t\t\r\n\t\t\torder.finish();\r\n\t\t});\r\n\t\r\n\t\r\n\t\tstore.error(function(error) {\r\n\t\t\tconsole.log('ERROR ' + error.code + ': ' + error.message);\r\n\t\t});\t\r\n\t\t\r\n\t\tstore.ready(function() {\r\n\t\t\tconsole.log(\"\\\\o/ STORE READY \\\\o/\");\r\n\t\t});\r\n\t\t\r\n\t\tstore.refresh();\r\n\t}\r\n\r\nconsole give me\r\n\r\n    10-20 21:58:46.475:[store.js] DEBUG: store.queries !! '12tentativi registered':460\r\n    10-20 21:58:46.480:[store.js] DEBUG: store.queries !! 'consumable registered':460\r\n    10-20 21:58:46.480:[store.js] DEBUG: store.queries !! 'registered':460\r\n    10-20 21:58:46.485:[store.js] DEBUG: store.queries !! '12tentativi updated':460\r\n    10-20 21:58:46.485:[store.js] DEBUG: store.queries !! 'consumable updated':460\r\n    10-20 21:58:46.485:[store.js] DEBUG: store.queries !! 'updated':460\r\n    10-20 21:58:46.490:[store.js] DEBUG: queries ++ '12tentativi approved':460\r\n    10-20 21:58:46.495:[store.js] DEBUG: store.trigger -> triggering action refreshed:460\r\n    10-20 21:58:46.500:[store.js] DEBUG: queries !! 'refreshed':460\r\n    10-20 21:58:46.500:InAppBilling[js]: setup ok:735\r\n    10-20 21:58:46.505:InAppBilling[js]: load [\"12tentativi\"]:735\r\n    10-20 21:58:46.535:OK:860\r\n    10-20 21:58:47.365:[store.js] DEBUG: plugin -> ready:460\r\n    10-20 21:58:47.365:InAppBilling[js]: getAvailableProducts called!:735\r\n    10-20 21:58:47.365:[store.js] DEBUG: plugin -> loaded - []:460\r\n    10-20 21:58:47.365:[store.js] DEBUG: store.queries !! '12tentativi invalid':460\r\n    10-20 21:58:47.370:[store.js] DEBUG: store.queries !! 'consumable invalid':460\r\n    10-20 21:58:47.370:[store.js] DEBUG: store.queries !! 'invalid invalid':460\r\n    10-20 21:58:47.370:[store.js] DEBUG: store.queries !! 'invalid':460\r\n    10-20 21:58:47.370:[store.js] DEBUG: store.queries !! '12tentativi updated':460\r\n    10-20 21:58:47.370:[store.js] DEBUG: store.queries !! 'consumable updated':460\r\n    10-20 21:58:47.370:[store.js] DEBUG: store.queries !! 'invalid updated':460\r\n    10-20 21:58:47.370:[store.js] DEBUG: store.queries !! 'updated':460\r\n    10-20 21:58:47.370:[store.js] DEBUG: store.queries !! '12tentativi loaded':460\r\n    10-20 21:58:47.370:[store.js] DEBUG: store.queries !! 'consumable loaded':460\r\n    10-20 21:58:47.370:[store.js] DEBUG: store.queries !! 'invalid loaded':460\r\n    10-20 21:58:47.370:[store.js] DEBUG: store.queries !! 'loaded':460\r\n    10-20 21:58:47.370:[store.js] DEBUG: store.queries !! '12tentativi updated':460\r\n    10-20 21:58:47.370:[store.js] DEBUG: store.queries !! 'consumable updated':460\r\n    10-20 21:58:47.375:[store.js] DEBUG: store.queries !! 'invalid updated':460\r\n    10-20 21:58:47.375:[store.js] DEBUG: store.queries !! 'updated':460\r\n    10-20 21:58:47.375:InAppBilling[js]: getPurchases called!:735\r\n    10-20 21:58:47.375:\\o/ STORE READY \\o/:319\r\n\r\nin the app I call\r\n\r\nstore.order('12tentativi');\r\n\r\nand the app give me a dialog \"Authentication required...\" and in the console log: \"buy error 6777006\"\r\n\r\nthe plugin was installed with the BILLING_KEY from Play Developer Console\r\n\r\nI follow the step:\r\n\r\n1. create signed APK \r\n2. Upload It in beta on Play developer console\r\n3. Create '12tentativi' product\r\n4. Wait over 10 hours\r\n5. install apk on my device with 'adb install xxxxx.apk'\r\n\r\nPS: the same procedure in iOS works.\r\n\r\nCould you help me? thanks"},"comment":{"url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/comments/154372907","html_url":"https://github.com/j3k0/cordova-plugin-purchase/issues/322#issuecomment-154372907","issue_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/322","id":154372907,"user":{"login":"Aelios","id":7429224,"avatar_url":"https://avatars.githubusercontent.com/u/7429224?v=3","gravatar_id":"","url":"https://api.github.com/users/Aelios","html_url":"https://github.com/Aelios","followers_url":"https://api.github.com/users/Aelios/followers","following_url":"https://api.github.com/users/Aelios/following{/other_user}","gists_url":"https://api.github.com/users/Aelios/gists{/gist_id}","starred_url":"https://api.github.com/users/Aelios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aelios/subscriptions","organizations_url":"https://api.github.com/users/Aelios/orgs","repos_url":"https://api.github.com/users/Aelios/repos","events_url":"https://api.github.com/users/Aelios/events{/privacy}","received_events_url":"https://api.github.com/users/Aelios/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T10:25:15Z","updated_at":"2015-11-06T10:25:15Z","body":"Same issue, found a solution ?"}}