Hello,
I’ve a Flutter app available on several platforms, iOS/iPadOS/macOS and Android/AndroidTV.
Everything works well but I’m facing an issue on Amazon Firestick. I know revenuecat supports Amazon Store IAP but I can’t publish my app on this store and users install it via apk direct link.
So on this platform I disable IAP and just want to login user and check CustomerInfo to see if there is any subscription purchased on another platform.
I don’t know how to implement this, if I call the configure(configuration) method which Api Key should I use ? Can I use the android api key even if app is running of Amazon FireOS ?
I tried to just login user because the dart documentation says :
This function will logIn the current user with an appUserID.
Typically this would be used after logging in a user to identify them without
calling configure
But when I call Purchases.login(userId) :
kotlin.UninitializedPropertyAccessException: There is no singleton instance. Make sure you configure Purchases before trying to get the default instance
Is there a way to do this ? Even an API endpoint maybe without using the flutter sdk ?
I think this issue also apply to all platforms without supported store like Windows, Linux or Web.
Thanks for your help !
Best answer by FrereBilly
View original