Skip to main content

Hi,

I just migrated to the latest RevenueCat SDK on iOS (from 3 → 4). I also setup SearchAds attribution, but I only want to use the standard attribution (I’m not showing ATT prompt). I am using the latest iOS SDK (4.11.0) via cocoa pods.

 

I noticed that on all iOS versions except 14.5, my app loads. On 14.5, it hangs after calling -enableAdServicesAttributionTokenCollection:

- (instancetype)init {
self = ssuper init];
if (self) {
_purchases = aRCPurchases configureWithAPIKey:@"IMY API KEY HERE]"];
#ifdef DEBUG
RCPurchases.logLevel = RCLogLevelError; //RCLogLevelDebug
#endif
if (@available(iOS 14.3, macOS 11.1, macCatalyst 14.3, *)) {
_purchases.attribution enableAdServicesAttributionTokenCollection];
}
_purchases.delegate = self;
}
return self;
}

Any ideas why this might be happening? I’m importing iAd, AdServices, and RevenueCat. It works 100% when I comment out that function call.


Thanks!

Same thing here! 

The app just freezes with this line (happens only in simulator)

if #available(iOS 14.3, *) {
Purchases.shared.attribution.enableAdServicesAttributionTokenCollection()
}

 

Unfortunately, the workaround to this problem is excluding this line on simulators:

if #available(iOS 14.3, *) {
#if !targetEnvironment(simulator)
Purchases.shared.attribution.enableAdServicesAttributionTokenCollection()
#endif

}

Any update in this?


Same here. I’ve just spent over an hour trying to figure out why my app freezes on the launch screen on the iOS 14.5 simulator. It boils down to `enableAdServicesAttributionTokenCollection`.

 

I’m surprised this hasn’t been addressed after being reported over 3 months ago!


Still happening for me using flutter, any update or solution? I see this first post is from 2 years ago.


Hi ​@uriparadeda,

Which version of the SDK are you using? And is this only happening for iOS 14.5?

 

Best,


Hi ​@uriparadeda,

Which version of the SDK are you using? And is this only happening for iOS 14.5?

 

Best,

I’m also seeing this issue happening to some users. If it’s any help I feel like it started when we added Superwall. 
Sdk:
react-native-purchases 8.2.3 

@superwall/react-native-superwall: 1.3.4,