Feb 9, 2021
The notification view is the custom view that is used for the notification:
I declared this as a member:
private lateinit var notificationView: RemoteViews
And then in onCreate i instantiate this remote view:
this.notificationView = RemoteViews(packageName, R.layout.custom_notification) -> R.layout.custom_notification is the custom layout that I used.
The import for RemoteView is from android.widget.RemoteViews