Skip to content

SyncHistoricalData delay #269

@WiseKodama

Description

@WiseKodama

@SpertsyanKM Apologies in advance for tagging you here, but you've helped me out before and I need some guidance.

FYI: We had Qonversion in our app before, then replaced it with clients SDK, now we are readding it.

This is my initialization code:

    #region Constructor
    public PurchaseManager(List<IapPack> iapPacks)
    {
        supportedPacks = iapPacks;
        var config = new QonversionConfigBuilder( QonversionProjectKey, LaunchMode.SubscriptionManagement )
#if !RELEASE_VERSION
            .SetEnvironment( QonversionUnity.Environment.Sandbox )
#endif
            .Build();

        var qonversionInstance = Qonversion.Initialize( config );
        qonversionInstance.SyncHistoricalData();
        GetProducts();
        LogUserInfo();
        FirebaseManager.RegisterAnalyticsReady( LinkFirebase );
        qonversionInstance.UpdatedEntitlementsReceived += OnEntitlementsUpdated;
        if( !PlayerData._.IsInitialized ) return;
        
        qonversionInstance.Identify( PlayerData._.profile.playerId );
    }
    #endregion Constructor

In GetProducts I call Qonversion.GetSharedInstance().Products, once it finishes successfully I call Qonversion.GetSharedInstance().CheckEntitlements.

The issue I have is that the entitlements are returned, however their transaction data is missing UNTIL next app launch.
Is there some sort of delay between when the BE received the historicalData?

There is no callback to let me know that data has been properly synced, so I am unsure as to when the transactions list for the entitlement will be populated.

Any suggestions for this issue?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions