Closed MoienTajik closed 2 months ago
So If I understand this correctly you would like to have 2 methods:
current one: Initialize(string apiKey)
and
new one: Initialize(string apiKey, string appUserId)
Correct ?
Yes, exactly. This way, we can initialize the plugin using appUserId
in first place in the DI, and as far as I understood, that doesn't need to be async unlike the Login method.
This month I am quite busy so I wont be able to implement this. But feel free to create a PR
Ok I got to that sooner because I needed to adjust something else as well.
Your proposal was Implemented in: https://github.com/Kebechet/Maui.RevenueCat.InAppBilling/commit/772a40375b011c884ea0940c3c9262cf4d23db95
and will be released as v4.5.0
Please test it and then let me know
@MoienTajik does it work correctly ?
Yes, Thanks! @Kebechet
Currently
Initialize
method inRevenueCatBillingiOS
(I'm not sure about Android impl detail) doesn't acceptAppUserId
, butPurchases.ConfigureWithAPIKey
accepts that parameter and we can initialize theAppUserId
from startup instead of doing that viaLogin
.