-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Facebook SDK automatic app events logging with StoreKit2 #2377
Comments
We also encountered this issue. We also discovered that Firebase does not support StoreKit 2. Considering that StoreKit 2 does not have any particular advantages, we plan to fall back to StoreKit 1. |
Sad to hear that you've also encountered this issue We've taken a decision to switch to As for now, it'd be amazing to understand whether it's widespread issue and if Facebook Mobile SDK team considers to support that |
With Storekit 1 officially being deprecated, it would be awesome to move this forward |
Hello guys. Do you have any news on this issue? Facing the same trouble. Running app campaign optimized on Start Trial conversion, but only 1 out of 22 trials has been tracked. Event manager also does not show Start Trial conversions. Seems Facebook SDK does not fully support Store Kit 2. |
@max-sab Hello. Sorry for bothering. Could you tell me if you solved the issue? Have new Facebook SDK versions helped you? |
@EgorSigolaev Hi! According to changelog looks like 18.0.0 should solve the issue but I didn't have a chance to try it out yet |
Hi! I've tested 18.0.0, but it tracked a half of all purchase events. And the problem is that Facebook SDK probably verifies subscription transaction before tracking to avoid fraud. So events are tracked with a delay in 1-2 minutes. |
We also encountered this issue. Can you please have the Meta team investigate it ASAP? |
Checklist before submitting a bug report
Xcode version
15.1
Facebook iOS SDK version
16.3.1
Dependency Manager
SPM
SDK Framework
Core
Goals
We are currently making a switch from
Original StoreKit
toStoreKit2
in our iOS app. We have Facebook SDK of version 16.3.1 (but tried on 17.0.0 as well) that automatically logs our purchase events.After the migration, we noticed drop in
Purchase
events quantity in our Events Manager.While debugging
Facebook App Events
automatic logging I have noticed that purchase events that Facebook sends from mobile client toEvents Manager
do not work as expected when purchase is made usingStoreKit2
:Original StoreKit
- purchase event logs immediately in the Facebook debug console after the actual purchaseStoreKit2
- purchase event does not appear in the debug console. Sometimes they are being sent when I relaunch the app, usually notI've researched
Facebook SDK
implementation and noticed that it usespublic func paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction])
to listen for the payment updates (sorry if i missed something and it's not the only method that you use)In my case, purchase made using
StoreKit2
does not trigger any events in this function right after the purchase and my theory is that it leads to the drop in ourPurchase
events quantity.So my question is if this is a known issue or
StoreKit2
purchases should track in the same way asOriginal StoreKit
and it looks like something's wrong with my code?Thanks in advance!
Expected results
After user makes a purchase either with
Original StoreKit
orStoreKit2
, Facebook SDK sends Purchase event to Events ManagerActual results
If i make purchase using Original StoreKit SDK -> Facebook SDK logs Purchase event immediately and everything works as expected
if I make purchase using StoreKit2 API -> no event is being tracked. sometimes it's tracked on the next app session, but usually not
Steps to reproduce
Purchase
event is being trackedCode samples & details
No response
The text was updated successfully, but these errors were encountered: