Pair iOS Central with MacOS Peripheral for encrypted characteristic

Is this even possible? Instead of any pairing dialog appearing, my central code get the "Authentication is insufficient" error when reading the characteristic.

My peripheral (in the macOS app) code uses the .notifyEncryptionRequired property and uses .readEncryptionRequired and .writeEncryptionRequired permissions. No descriptors are set, but I think they get added automatically since this characteristic notifies. 2900 and 2902 descriptors are set by the peripheral/CoreBluetooth.

If the Mac and iPhone are using the same Apple ID does that affect pairing?

Pair iOS Central with MacOS Peripheral for encrypted characteristic
 
 
Q