I might be wrong, but I guess the command pulls info about purchased items from the Apple Store.
Google market also provides some RESTORE_TRANSACTIONS request, which seems to be executed when using InAppPurchaseSetup(), as the command help suggests.
If the data about purchased items was stored locally, it would be gone if the user reinstalls Windows or sets his smartphone back to factory settings.
So about the doublecoinstate question:
1. Check which items user has already purchased when your app initializes
2. Set doublecoinstate to 1 if user purchased it
3. Use doublecoinstate in your code to reward the user with 2x coins