Closed vahidvdn closed 4 years ago
Hey @vahidvdn , from what I see from your code you are not waiting for the plugin to be initialized. Per the Usage it is recommended (if not required) you surround your getProducts with the wait for the init promise. Also for NG, I'm not sure if in the main.ts
isn't a bit early in the lifecycle. You can as well try to call init in your AppComponent instead.
@PeterStaev I use getProducts
in a button click event. But I will try what you mentioned to see if it's working or not. Thanks.
@PeterStaev I tested it but still the same problem. (I'm not sure that I can run the project from the cli or I should submit a new version in Google Play. Can I just run the app or I should build a production version and submit it in Google Play?)
There was a problem with Google Play console. It's working now. Thanks.
Hi. I have the following implementation. But the products list is empty. (I've submitted my app as a beta release at Google Play and added a product id)
main.ts
items.componet.ts
Any idea?