-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase SDK crashes app on in-app purchase completion with: [__NSCFBoolean timeIntervalSince1970]: unrecognized selector sent to instance #4176
Comments
Thanks for the report, tracked internally at b/143455671 |
@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. |
I found a similar unsolved report on Stack Overflow reported last year here. |
@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. |
@ansonl : Thanks for the reproduction steps. The issue is that |
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
The text was updated successfully, but these errors were encountered: