{"action":"created","issue":{"url":"https://api.github.com/repos/idehub/react-native-billing/issues/1","labels_url":"https://api.github.com/repos/idehub/react-native-billing/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/idehub/react-native-billing/issues/1/comments","events_url":"https://api.github.com/repos/idehub/react-native-billing/issues/1/events","html_url":"https://github.com/idehub/react-native-billing/issues/1","id":127754288,"number":1,"title":"App crashes sometimes","user":{"login":"BigPun86","id":7880624,"avatar_url":"https://avatars.githubusercontent.com/u/7880624?v=3","gravatar_id":"","url":"https://api.github.com/users/BigPun86","html_url":"https://github.com/BigPun86","followers_url":"https://api.github.com/users/BigPun86/followers","following_url":"https://api.github.com/users/BigPun86/following{/other_user}","gists_url":"https://api.github.com/users/BigPun86/gists{/gist_id}","starred_url":"https://api.github.com/users/BigPun86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigPun86/subscriptions","organizations_url":"https://api.github.com/users/BigPun86/orgs","repos_url":"https://api.github.com/users/BigPun86/repos","events_url":"https://api.github.com/users/BigPun86/events{/privacy}","received_events_url":"https://api.github.com/users/BigPun86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-01-20T18:35:58Z","updated_at":"2016-01-21T08:56:34Z","closed_at":null,"body":"When i trigger purchase/getPurchaseList/consume the App crashes with this exception:\r\n\r\n<img width=\"984\" alt=\"screen shot 2016-01-20 at 19 33 38\" src=\"https://cloud.githubusercontent.com/assets/7880624/12459045/046e6f9c-bfad-11e5-887b-7e328595f56f.png\">\r\n"},"comment":{"url":"https://api.github.com/repos/idehub/react-native-billing/issues/comments/173504140","html_url":"https://github.com/idehub/react-native-billing/issues/1#issuecomment-173504140","issue_url":"https://api.github.com/repos/idehub/react-native-billing/issues/1","id":173504140,"user":{"login":"BigPun86","id":7880624,"avatar_url":"https://avatars.githubusercontent.com/u/7880624?v=3","gravatar_id":"","url":"https://api.github.com/users/BigPun86","html_url":"https://github.com/BigPun86","followers_url":"https://api.github.com/users/BigPun86/followers","following_url":"https://api.github.com/users/BigPun86/following{/other_user}","gists_url":"https://api.github.com/users/BigPun86/gists{/gist_id}","starred_url":"https://api.github.com/users/BigPun86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BigPun86/subscriptions","organizations_url":"https://api.github.com/users/BigPun86/orgs","repos_url":"https://api.github.com/users/BigPun86/repos","events_url":"https://api.github.com/users/BigPun86/events{/privacy}","received_events_url":"https://api.github.com/users/BigPun86/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T08:56:33Z","updated_at":"2016-01-21T08:56:33Z","body":"If you mean this line:\r\n\r\n    .addPackage(new InAppBillingBridgePackage(this)) \r\n\r\nthen yes. This only happens unregularly. I am not sure if i am using the test productID correct?\r\n    const InAppBilling = require(\"react-native-billing\");\r\n    \r\n    /**\r\n     * ProductList delivers you following JSON:\r\n     *\r\n     * priceText: '0,91 €',\r\n     * priceValue: 0.909033,\r\n     * currency: 'EUR',\r\n     * isSubscription: false,\r\n     * description: 'Sample description for product: android.test.purchased.',\r\n     * title: 'Sample Title',\r\n     * productId: 'android.test.purchased'\r\n     *\r\n     */\r\n    \r\n    const purchased = 'android.test.purchased';\r\n    const canceled = 'android.test.canceled';\r\n    const refunded = 'android.test.refunded';\r\n    const productId = purchased;\r\n    function productListButton() {\r\n        InAppBilling.getProductDetails(productId).then((details) => {\r\n            console.log(details);\r\n            this.setState({\r\n                priceText: details.priceText,\r\n                priceValue: details.priceValue,\r\n                currency: details.currency,\r\n                isSubscription: details.isSubscription,\r\n                description: details.description,\r\n                title: details.title,\r\n                productId: details.productId\r\n            })\r\n        }).catch((error)=> {\r\n            console.log(error);\r\n        });\r\n    }\r\n    \r\n    /**\r\n     * purchase delivers you following JSON:\r\n     *\r\n     * purchaseState: 'PurchasedSuccessfully',\r\n     * purchaseTime: 'Thu Jan 01 01:00:00 MEZ 1970',\r\n     * purchaseToken: 'inapp:com.inapptest:android.test.purchased',\r\n     * orderId: 'transactionId.android.test.purchased',\r\n     * productId: 'android.test.purchased'\r\n     *\r\n     */\r\n    function purchaseButton() {\r\n        InAppBilling.purchase(productId).then((purchaseDetails) => {\r\n            console.log(purchaseDetails);\r\n            this.setState({\r\n                purchaseState: purchaseDetails.purchaseState,\r\n                purchaseTime: purchaseDetails.purchaseTime,\r\n                purchaseToken: purchaseDetails.purchaseToken,\r\n                orderId: purchaseDetails.orderId,\r\n                productId: purchaseDetails.productId,\r\n            })\r\n        }).catch((error)=> {\r\n            console.log(error);\r\n        });\r\n    }\r\n    \r\n    /**\r\n     * consumePurchase delivers you boolean response if the given productID has been consumed/purchased:\r\n     */\r\n    function consumeButton() {\r\n        InAppBilling.consumePurchase(productId).then((consumed) => {\r\n            console.log(\"Is consumed: \" + consumed);\r\n            this.setState({\r\n                consumed: \"Is consumed: \" + consumed\r\n            })\r\n        }).catch((error)=> {\r\n            console.log(error);\r\n        });\r\n    }\r\n"}}