PKIssuerProvisioningExtensionHandler process outlives root instance

I'm working on an "Issuer Provisioning" extension for iOS. Instances of my root PKIssuerProvisioningExtensionHandler subclass are initialised and reinitialised often (every time the user taps the "+" button in the Wallet app) and live for a few milliseconds. So far, so good.

The head-scratching part is that the extensions' process lives on across multiple invocations. This in turn has the effect that static member values also live on, meaning they are not in a predictable state during instantiation. Some of my static-loving dependencies are unhappy with this pattern.

Is this "process outliving instances" extension pattern a common one? Is it described anywhere? Can it be disabled?

Replies

Hello, did you manage to do this? Im on it right now, and Im baffled by lack of documentation, even the one sent by Apple.

  • Hello,

    I am also stuck due to lack of documentation. Can someone please help?

Add a Comment