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 upFirebase SDK crashes app on in-app purchase completion with: [__NSCFBoolean timeIntervalSince1970]: unrecognized selector sent to instance #4176
Comments
This comment has been minimized.
This comment has been minimized.
Thanks for the report, tracked internally at b/143455671 |
This comment has been minimized.
This comment has been minimized.
@ansonl same here! I've noticed this crash since two weeks ago and was trying to debug to found some issue and didn't find anything indeed on my app project. Thank you for reporting. |
This comment has been minimized.
This comment has been minimized.
I found a similar unsolved report on Stack Overflow reported last year here. |
This comment has been minimized.
This comment has been minimized.
@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. |
This comment has been minimized.
This comment has been minimized.
@ansonl : Thanks for the reproduction steps. The issue is that |
This comment has been minimized.
This comment has been minimized.
Firebase 6.13.0 was just released and should address this issue. Please update and re-open if you're still seeing the issue, thanks! |
[READ] Step 1: Are you in the right place?
Yes
[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.
After the iOS callbacks for transaction finished have completed, the application will crash with the below debug text:
This behavior occurs 100% of the time.
Relevant Code:
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