Yes, you've to delay the API call for UserDefaults etc. till you receive callback like didFinishLaunching. If you try to access before it, sometimes you may get data and sometimes you may not. Same code was working fine in iOS14 and below.
Topic:
Privacy & Security
SubTopic:
General
Tags: