setAllowSharingStoreAccount static method

Future<void> setAllowSharingStoreAccount(
  1. bool allowSharing
)

Set this to true if you are passing in an appUserID but it is anonymous.

This is true by default if you didn't pass an appUserID. If a user tries to purchase a product that is active on the current app store account, we will treat it as a restore and alias the new ID with the previous id.

Implementation

static Future<void> setAllowSharingStoreAccount(bool allowSharing) {
  return rc.Purchases.setAllowSharingStoreAccount(allowSharing);
}