Finally, I solved this problem by replacing the NSURLSessionConfiguration *bgconfig = [NSURLSessionConfiguration backgroundSessionConfigurationWithIdentifier:self.bgSessionId]; with
NSURLSessionConfiguration *bgconfig = [NSURLSessionConfiguration defaultSessionConfiguration]; It's clear that background session is not supported in the AppClip target. ~ :(