Use this API to set the app ID where you'll be sending data. It can be used to switch between projects or between your production and development environments.

setAppId initializes Heap tracking on iOS or React Native. It should be called only once per app open. If it is called multiple times, it will initiate a new session for the user.

[Heap setAppId:@"YOUR_APP_ID"];
// React Native function declaration
export function setAppId(appId: string): void;

// Usage
  1. appId: the appId corresponding to one of your projects
Did you find what you were looking for?
Thumb up Thumb down