private void sendNotification(Context context, String dnsModel) {
Intent intentAction = new Intent(context, MainActivity.class);
intentAction.putExtra("dns
Creating a notification channel is not that hard. Here is some code: https://developer.android.com/training/notify-user/channels#CreateChannel
You can execute that code in your MainActivity or your Application class on app startup.
Once you created the channel id, you can use it with
NotificationCompat.Builder(Context context, String channelId)
EDIT
The CHANNEL_ID is a simple String. You can for example add this to a constants file:
public static final String CHANNEL_ID = "your.package.name.notificationChannelId"
You can now use this constants hwen creating your notification channel and when calling NotificationCompat.Builder(Context context, String channelId)