Skip to main content
Question

Android SDK logInWith not working

  • Mar 9, 2023 6:10 AM UTC
  • 3 replies
  • 592 views

Forum|alt.badge.img+5

I set up USER_ID to the Purchases.sharedInstance.logInWith() method and then SDK response created parameter always return false.

 

 

This post has been closed for comments

3 replies

Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • Mar 10, 2023 7:10 PM UTC

Hey @MB_DEV ,

 

I recommend following this guide on logging in on our SDK. logInWith is typically used after a log out to identify a new user without calling configure again. 


Forum|alt.badge.img+5
  • Author
  • New Member
  • Mar 14, 2023 9:37 AM UTC

I following this  guide  on logging in SDK. I used purchasePackageWith() and then purchase  successful, but customerInfo.originalAppUserId parameter always return $RCAnonymousID, not my logging user id. 


Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • Mar 15, 2023 5:24 PM UTC

Hey @MB_DEV ,

 

The originalAppUser ID will return the first app user id used by the subscriber. You can call getAppUserId for just appUserId. This will return the last seen app user id of the subscriber.