Testing your integration
Turn on verbose logging
amply.setLogLevel(level: "debug")
// or
amply.setLogLevel(level: .debug)import tools.amply.sdk.logging.LogLevel
amply.setLogLevel(LogLevel.DEBUG)
// or
amply.setLogLevel("debug")import Amply from '@amplytools/react-native-amply-sdk';
Amply.setLogLevel('debug');Inspect recent events
Task {
let events = try await amply.getRecentEvents(limit: 30)
for event in events {
print("\(event.timestamp) \(event.name) \(event.type) \(event.properties)")
}
}lifecycleScope.launch {
val events = amply.getRecentEvents(limit = 30)
events.forEach { e ->
Log.d("Amply", "${e.timestamp} ${e.name} ${e.type} ${e.properties}")
}
}const events = await Amply.getRecentEvents(30);
console.table(events.map(e => ({
name: e.name,
type: e.type,
ts: new Date(e.timestamp).toISOString(),
})));Inspect what the SDK knows about the user
Dataset
What's in it
Verifying events reach the dashboard
Quick diagnostics checklist
Related
Last updated