Can you post the event sub?
I don't want to burden you with all the supporting code, but here's the event sub and the 1-second timer that I referred to in the previous post:
Sub iAppStore_TransactionsRestored
'ignore if connection timed out
If ConnTimedOut=True Or ConnCanc=True Or RestDone=True Then
Return
Else
tmrConn.Enabled=False
End If
'disable tmrRestDone since store event has been raised
tmrRestDone.Enabled=False
ProcessRestoredPurchases
End Sub
Sub tmrRestDone_tick
tmrRestDone.Enabled=False
RestDone=True 'will disable iAppStore_TransactionsRestored event if it happens to trigger later
ProcessRestoredPurchases
End Sub
tmrRestDone is enabled/restarted by each iAppStore_PurchaseCompleted event. 1 second after the last purchase is received, ProcessRestoredPurchases is executed, as should be the case with iAppStore_TransactionsRestored.
If I comment out lines as follows, ProcessRestoredPurchases never runs:
Sub iAppStore_TransactionsRestored
'ignore if connection timed out
' If ConnTimedOut=True Or ConnCanc=True Or RestDone=True Then
'
' Return
'
' Else
'
' tmrConn.Enabled=False
'
' End If
'
' 'disable tmrRestDone since store event has been raised
'
' tmrRestDone.Enabled=False
ProcessRestoredPurchases
End Sub
Sub tmrRestDone_tick
tmrRestDone.Enabled=False
' RestDone=True 'will disable iAppStore_TransactionsRestored event if it happens to trigger later
'
' ProcessRestoredPurchases
End Sub
Are there maybe some parameters returned by iAppStore_TransactionsRestored that I haven't sepecified? Like iAppStore_TransactionsRestored(success) or something like that? From all I've seen mentioned, iAppStore_TransactionsRestored seems to be all that's needed.