Allows you to configure HyperTrack service notification properties.
See
FAQ
for an explanation.
Default behavior is to present notification with "your-app-name is running" title and body
with icon that is identical to your app's icon. Tap on that notification is identical to starting
app from launcher (it will call "android.intent.action.MAIN" action).
Your can either modify that behaviour completely, using
ServiceNotificationConfig(String, String, int, int, PendingIntent)
with required parameters, or use
ServiceNotificationConfig.Builder
to override some of them, e.g.:
HyperTrack sdk = HyperTrack.getInstance(this, myPublishableKey);
ServiceNotificationConfig config = new ServiceNotificationConfig.Builder()
.setContentText("Tap to stop tracking")
.build();
sdk.setTrackingNotificationConfig(config);
Check out
ServiceNotificationConfig.Builder
setters for details.