I have found testing that the line below sometimes returns false when a subscription is active.
purchaserInfo.entitlements[XXXXXXXXX]?.isActive
How can this be?
Also I notice that in your quick start guide you no longer have the line purchaserInfo.entitlements[XXXXXXXXX]?.isActive
regards
Peter