Integrate the Point SDK & configure Tempo in your app
To get started with Tempo, you’ll first need to integrate the Point SDK in your mobile app. You can find step-by-step integration guides here:
During SDK integration, there are 4 important stages that align with your customer’s experience.
- Set the Custom Event Metadata to be attached with each Tempo Event – this is usually at least the customer’s name and orderID, but you can add up to 20. (Learn more here.)
- Define the DestinationId – this is where the customer is collecting their order. You can use anything, but we recommend using the normal Store Number or Restaurant ID.
- Start location tracking & the Tempo service when your customer submits their order.
- Stop location tracking & the Tempo service once your customer arrives at their Destination.
/** * Start Tempo Tracking. * @param destinationId - destinationId of the Zone for tracking. * @param statusListener - implementation of Tempo status callbacks to receive Tempo lifecycle events and errors. */ public void startTempoTracking(@NonNull String destinationId, @NonNull TempoStatusListener statusListener) /** * Stop Tempo Tracking * TempoStatusListener#tempoStopped() will be called once tracking has ceased. */ public void stopTempoTracking()
You’ll find comprehensive Android implementation detail here.
iOS – Tempo implementation
/** * Start Tempo tracking for destination id provided * @param destinationId The destinationId to be tracked */ (void)startTempoTracking: (nonnull NSString *)destinationId; /** * Stop Tempo Tracking */ (void)stopTempoTracking;
You’ll find comprehensive iOS implementation detail here.
In iOS, to receive Tempo related callbacks, implement the BDPTempoTrackingDelegate protocol