Leanplum / Leanplum-ReactNative-SDK

Leanplum's integrated solution delivers meaningful engagement across messaging and the in-app experience.
https://www.leanplum.com/
Apache License 2.0
7 stars 7 forks source link

Getting empty client/features on Android #82

Open mirague opened 1 year ago

mirague commented 1 year ago

Specifically on Android we're observing issues with Leanplum.getVariables(), where all it returns is an empty client object:

Leanplum.forceContentUpdate() // Even without this nothing's returned 99% of the time
const fetchedVariables = await Leanplum.getVariables() // { "client":{} }

The weird thing is that SOMETIMES it does work, but most of the time it doesn't. We've had no issues running the very same code on iOS / iPadOS, and we're using the same identifier/user between these platforms where it does work on iOS but Android comes up empty.

We're on @leanplum/react-native-sdk@2.0.0