Leanplum / Leanplum-Segment-iOS

Segment integration for the Leanplum SDK on iOS.
Apache License 2.0
2 stars 9 forks source link

Problem with Leanplum's variables after identifying. #7

Closed paulsbin closed 3 years ago

paulsbin commented 6 years ago

Hello,

I think you have a problem with method: - (void)identify:(SEGIdentifyPayload *)payload. After setting userId, you should call [Leanplum forceContentUpdate]. It's necessary to get actual variables for specific userId. Also I can't manually call [Leanplum forceContentUpdate] after identifying, because your implementation is asynchronous.

Please, pay attention about this problem in other mobile platforms.

Best regards.

nzagorchev commented 3 years ago

The setUserId method does not have a callback and is not send immediately. You can call [Leanplum forceContentUpdate]after identify request.