You need to do minor setup to enable Avo Functions to start reporting to Avo Inspector.
Common steps for all platforms:
Avo Inspector should be enabled for given source. Open the Inspector tab in the side menu in your Avo workspace, then press "Manage Sources" button at the top, choose your source from the grid and wait until you see the API Key
. Once the API Key
appears you source is considered Inspector-enabled.
Your Avo generated file should use Avo version 63.10.0 or greater. You can find the version in the comment at the top of the generated file. If the version is older than 63.10.0 run avo pull
again.
Platform specific setup:
Make sure
AvoInspector
dependency in your podfile is equal or greater than1.2.0
.
You can use your own separate instance of Avo Inspector as described here to analyze your tracking outside of Avo Functions, it will report the data correctly alongside the Avo Functions.
Make sure
com.github.avohq:android-avo-inspector
dependency in your build.gradle file is equal or greater than1.2.0
.
Generated Avo file exposes avoInspectorApiKey constant that contains your Inspector API key.
This is how your Avo initialization code should look like:
KotlinCopy1234567import app.avo.inspector.AvoInspectorimport app.avo.inspector.AvoInspectorEnvval inspector = AvoInspector(avoInspectorApiKey,application, AvoInspectorEnv.Dev)Avo.initAvoWithInspector(inspector, ...)
JavaCopy123456import app.avo.inspector.AvoInspector;import app.avo.inspector.AvoInspectorEnv;AvoInspector inspector = new AvoInspector(StaticAvo.avoInspectorApiKey, getApplication(), AvoInspectorEnv.Dev);Avo.initAvoWithInspector(..., inspector);
You can use the same instance of Avo Inspector to analyze your tracking outside of Avo Functions, it will report the data correctly alongside the Avo Functions.
avo-inspector
dependency in your package.json file should be equal or greater than 1.2.0.
Generated Avo file exposes avoInspectorApiKey constant that contains your Inspector API key.
This is how your Avo initialization code should look like:
JavaScriptCopy123456789const Inspector = require("avo-inspector");const inspector = new Inspector.AvoInspector({apiKey: Avo.avoInspectorApiKey,env: Inspector.AvoInspectorEnv.Dev,version: "1.0.0",appName: "My App"});Avo.initAvo( { env: "dev", inspector: inspector}, ...);
TypeScriptCopy123456789import * as Inspector from "avo-inspector";const inspector = new Inspector.AvoInspector({apiKey: Avo.avoInspectorApiKey,env: Inspector.AvoInspectorEnv.Dev,version: "1.0.0",appName: "My App"});Avo.initAvo({ env: Avo.AvoEnv.Dev, inspector: inspector }, ...);
You can use the same instance of Avo Inspector to analyze your tracking outside of Avo Functions, it will report the data correctly alongside the Avo Functions.
node-avo-inspector
dependency in your package.json file should be equal or greater than 0.1.0.
Generated Avo file exposes avoInspectorApiKey constant that contains your Inspector API key.
This is how your Avo initialization code should look like:
JavaScriptCopy123456789const Inspector = require("node-avo-inspector");const inspector = new Inspector.AvoInspector({apiKey: Avo.avoInspectorApiKey,env: Inspector.AvoInspectorEnv.Dev,version: "1.0.0",appName: "My App"});Avo.initAvo( { env: "dev", inspector: inspector}, ...);
TypeScriptCopy123456789import * as Inspector from "node-avo-inspector";const inspector = new Inspector.AvoInspector({apiKey: Avo.avoInspectorApiKey,env: Inspector.AvoInspectorEnv.Dev,version: "1.0.0",appName: "My App"});Avo.initAvo({ env: Avo.AvoEnv.Dev, inspector: inspector }, ...);
You can use the same instance of Avo Inspector to analyze your tracking outside of Avo Functions, it will report the data correctly alongside the Avo Functions.
react-native-avo-inspector
dependency in your package.json file should be equal or greater than 1.2.0.
Generated Avo file exposes avoInspectorApiKey constant that contains your Inspector API key.
This is how your Avo initialization code should look like:
JavaScriptCopy123456789const Inspector = require("react-native-avo-inspector/dist-native");const inspector = new Inspector.AvoInspector({apiKey: Avo.avoInspectorApiKey,env: Inspector.AvoInspectorEnv.Dev,version: "1.0.0",appName: "My App"});Avo.initAvo( { env: "dev", inspector: inspector}, ...);
TypeScriptCopy123456789import * as Inspector from "react-native-avo-inspector/dist-native";const inspector = new Inspector.AvoInspector({apiKey: Avo.avoInspectorApiKey,env: Inspector.AvoInspectorEnv.Dev,version: "1.0.0",appName: "My App"});Avo.initAvo({ env: Avo.AvoEnv.Dev, inspector: inspector }, ...);
You can use the same instance of Avo Inspector to analyze your tracking outside of Avo Functions, it will report the data correctly alongside the Avo Functions.