SKStoreProductViewController - loadProductWithParameters: Issue with completion Block.

When i load my product View most of the times its loading the storeKit without any issue. But some times the completion block is not even getting executed for loadProductWithParameters api call. if once this issue starts it persists until i restart the device.

Issue happens randomly and only way to resolve this is by restarting the device. Even if i remove and install the app its having the issue.

Below is my code snippet. Please do suggest any way i can resolve this.

dispatch_async(dispatch_get_main_queue(), ^{   SKStoreProductViewController *currentProductView = [SKStoreProductViewController new];   currentProductView.delegate = Self;   [currentProductView loadProductWithParameters:strongSelf.appStoreParams completionBlock:^(BOOL result, NSError *_Nullable error) {     if (result && !error) {       NSLog(@"Successfully load Storekit product view:%@", error.description);     } else {       NSLog(@"Failed to load Storekit product view:%@", error.description);     }   }]; });

AppStore params i am passing are {   id = 423545644; }

Only happening on IOS 14.6 and above. i also see different behaviour behaviour like even if the SKStoreProductViewController finishes loading when we display it nothings showing. Here is the snippet of Presenting SKStoreProductViewController view.

[self presentViewController:self.productViewController animated:YES completion:^{   }];

SKStoreProductViewController - loadProductWithParameters: Issue with completion Block.
 
 
Q