Solved

Point to different heap project runtime within the app

  • 11 January 2023
  • 2 replies
  • 39 views

Hi, I’m using Heap with React Native
Can I point to different heap project run time by calling Heap.setAppId for android? For example when user logs in into the app - and we want to initialise the heap according to heap id we’re receiving from log in response. 

Basically we’re using 3 different environment and we want to point to appropriate heap project (dev, staging, production) upon user login. 

Is this possible for Android using React Native? 

icon

Best answer by Brian W 20 January 2023, 15:44

View original

2 replies

Userlevel 1
Badge +1

Hi, thanks for reaching out!

 

I’ve consulted with our mobile team on this, and unfortunately we don’t currently support initializing Heap at any time in the lifecycle of an app other than on startup. It’s an interesting use case, and I’ve submitted a feature request to our product team to consider adding this functionality in future releases, but we don’t have a great way to support it currently. We’re sorry for the inconvenience!

Thank you for the response, looking forward for this feature!

Reply