To give you some context, I’m trying to set up non-consumable in app purchases. I’ve read the tutorial and the store.api and I have a few questions.
First, is it safe to initialize the store every time the customer opens the in-app store or is it important to only initialize it once? If I can only initialize it once, should I do it when the app launches or on enter screen in case the device has been locked and the port closed? Obviously, it would be preferable to just do it every time they open the store to be sure nothing funky has happened to the connection.
Second, when I use store.restore is that going to send me a series of transaction callbacks to process or a single transaction callback with a bunch of products in it? The documentation says that when I restore I don’t have to specify the product to restore so I’m assuming the store will send information on all purchases associated with the app. Reading between the lines in the documentation, I’m guessing it sends a series of callbacks which are handled separately, but I felt like it was prudent to ask.
Thanks in advance for your expertise.