Service Notification Config
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 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);
Content copied to clipboard
Constructors
Link copied to clipboard
open fun ServiceNotificationConfig( @Nullable title: String, @Nullable body: String, @DrawableRes smallIconResId: Int, @DrawableRes bigIconResId: Int, @Nullable ignored: PendingIntent)
Content copied to clipboard