Skip to main content
Solved

iOS 15 prewarming clarification

  • 12 May 2022
  • 1 reply
  • 452 views

Forum|alt.badge.img+4

I just noticed the new docs have:

If you are not using RevenueCat's anonymous IDs as described above, and are instead providing your own app user ID on configuration, do not call configure in application:didFinishLaunchingWithOptions:. Instead, call the configure method in your root view controller's initialization method.

This is a fairly major change, since my app has a complex init sequence. It would be helpful to know more about what's going on here, so that I can correctly adjust my init sequence.

I have read about the unavailability of the KeyChain during prewarming, but what exactly is requiring this change?
 

Best answer by cody

Hey @Phil Mitchell,

This was added to the docs in response to the unavailability of the keychain during prewarming. If you aren’t using the keychain, this may not be an issue. That being said, there seems to be some inconsistency about how far prewarming will actually go during an app launch: https://developer.apple.com/forums/thread/696539

I’d recommend testing for your own app, making note that if you are using the keychain you might want to skip calling configure until your app’s root view controller is loaded.

View original
Did this post help you find an answer to your question?

1 reply

cody
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 487 replies
  • Answer
  • May 20, 2022

Hey @Phil Mitchell,

This was added to the docs in response to the unavailability of the keychain during prewarming. If you aren’t using the keychain, this may not be an issue. That being said, there seems to be some inconsistency about how far prewarming will actually go during an app launch: https://developer.apple.com/forums/thread/696539

I’d recommend testing for your own app, making note that if you are using the keychain you might want to skip calling configure until your app’s root view controller is loaded.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings