HomeDocumentationAPI Reference
Getting StartedAPI ReferenceBug ReportingCrash ReportingAPMHelp Center
Documentation

CodePush for React Native

Enables adding your CodePush version to all Luciq reports. (Bug reports, crash reports, etc.)

Prerequisites

Make sure your React Native app is using Luciq version v12.6.0 or higher for optimal compatibility with CodePush integration.

Initialization

To integrate Luciq with CodePush, pass the codePushVersion to allow you to change the reported versions.

Luciq.init({
  token: '<User-App-token>',
  codePushVersion: '<Code-push-version>',
  invocationEvents: [<Invocation-events>],
  // ...  Other optional arguments here
});

Make sure to replace "User-App-token", "Code-push-version", and "Invocation-events" with your actual Luciq token, CodePush version, and invocation events.

Native Initialization

To send the CodePush version from your native side, please use the following APIs:

//This should be called before startingWithToken.

Luciq.setCodePushVersion("")
//This should be called before startingWithToken.

[Luciq setCodePushVersion:@""];
new Luciq.Builder(application,"LUCIQ_TOKEN")
    .setCodePushVersion("")
    .build()
Luciq.Builder(application, "LUCIQ_TOKEN")
	.setCodePushVersion("")
	.build()

🚧

Character Limit

  • The total length of the combined app version and codePushVersion should not exceed 40 characters. Exceeding the limit will result in trimming the excess characters.
  • The combined versions will show as: "+codepush:". For example, if the app version is 1.0.0 (1), it would show as 1.0.0 (1)+codepush:1.0.6 (2) on the Luciq Dashboard.