Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Firebase SDK crashes app on in-app purchase completion with: [__NSCFBoolean timeIntervalSince1970]: unrecognized selector sent to instance #4176
[READ] Step 1: Are you in the right place?
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
Import frameworks for Firebase Analytics into project. (I am not sure which framework exactly is causing the crash.)
Complete an in app purchase in an iOS app with the transaction status of Purchased or Restored.
This behavior occurs 100% of the time.
Initiate FIRApp in your code.
After creating an SKProduct with an identifier string for the app id in App Store Connect, successfully make a purchase in the sandbox similar to below.
After the purchase completes or is restored and the Apple "success popup" shows, the application will crash with the mentioned message.
This issue has also been reported at Firebase google support online with Case 00018902
@ryanwilson I did some more testing, this exception always occurs when the NSUserDefaults key that is the same as the iAP product ID key is has a default prefs value registered like so:
In this case the IAP product ID key (that you would use to validate whether the iAP exists, etc) is
Seems like Firebase is monitoring the user preferences key but this is not documented anywhere.