NotificationTester

Functions

Link copied to clipboard
fun fireTestVisit(context: Context, confidence: Confidence, placeType: LocationType, isExit: Boolean)

A helper method to test your NotificationHandler implementation without moving around

Link copied to clipboard
fun sendConnectedTestVisit(venueId: String, confidence: Confidence, placeType: LocationType, isExit: Boolean)

An online version of the helper method to test your NotificationHandler implementation without moving around. This method communicates with the Foursquare servers and validates that what you pass would generate a visit notification to your app if you were actually there.

Link copied to clipboard
fun sendTestDepartureForVisit(context: Context, place: Visit, dwellTimeMillis: Long)

The companion method to sendTestDepartureForVisit to send a departure to your notification handler based on the arrival visit that you received from the arrival test method.

Link copied to clipboard
fun sendTestVisitArrivalAtLocation(context: Context, lat: Double, lng: Double, isDeparture: Boolean)

Simulate a user visit at a given location. This will act like your user has stopped at a given place and return you the correct venue for that location just as it would if they walked there in the real world. This is useful for debugging and testing your integrations at specific places such as if you wanted to test how your app behaved at a fast food restaurant, vs a big box store in the suburbs.