{"action":"created","issue":{"url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/311","labels_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/311/comments","events_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/311/events","html_url":"https://github.com/j3k0/cordova-plugin-purchase/issues/311","id":110884319,"number":311,"title":"All products remain APPROVED after restart","user":{"login":"kjakub","id":660833,"avatar_url":"https://avatars.githubusercontent.com/u/660833?v=3","gravatar_id":"","url":"https://api.github.com/users/kjakub","html_url":"https://github.com/kjakub","followers_url":"https://api.github.com/users/kjakub/followers","following_url":"https://api.github.com/users/kjakub/following{/other_user}","gists_url":"https://api.github.com/users/kjakub/gists{/gist_id}","starred_url":"https://api.github.com/users/kjakub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjakub/subscriptions","organizations_url":"https://api.github.com/users/kjakub/orgs","repos_url":"https://api.github.com/users/kjakub/repos","events_url":"https://api.github.com/users/kjakub/events{/privacy}","received_events_url":"https://api.github.com/users/kjakub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-11T21:37:28Z","updated_at":"2015-10-25T05:09:44Z","closed_at":null,"body":"```\r\nstore.when(\"product\").updated(function(p) {\r\n\tif(p.loaded && p.valid && p.state === store.APPROVED){\r\n\t  p.finish();\r\n\t}\r\n\r\n\tif(p.loaded && p.valid && p.state === store.OWNED){\r\n\t  console.log('OWNED',p)\r\n\t}\r\n\r\n});\r\n```\r\n\r\n I am calling finish() on each product, then i get OWNED state, but everytime i restart app, all products remains APPROVED only"},"comment":{"url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/comments/150892538","html_url":"https://github.com/j3k0/cordova-plugin-purchase/issues/311#issuecomment-150892538","issue_url":"https://api.github.com/repos/j3k0/cordova-plugin-purchase/issues/311","id":150892538,"user":{"login":"aesculus","id":283364,"avatar_url":"https://avatars.githubusercontent.com/u/283364?v=3","gravatar_id":"","url":"https://api.github.com/users/aesculus","html_url":"https://github.com/aesculus","followers_url":"https://api.github.com/users/aesculus/followers","following_url":"https://api.github.com/users/aesculus/following{/other_user}","gists_url":"https://api.github.com/users/aesculus/gists{/gist_id}","starred_url":"https://api.github.com/users/aesculus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aesculus/subscriptions","organizations_url":"https://api.github.com/users/aesculus/orgs","repos_url":"https://api.github.com/users/aesculus/repos","events_url":"https://api.github.com/users/aesculus/events{/privacy}","received_events_url":"https://api.github.com/users/aesculus/received_events","type":"User","site_admin":false},"created_at":"2015-10-25T05:09:44Z","updated_at":"2015-10-25T05:09:44Z","body":"After your app settles down call store.refresh() again"}}