public static NotificationManagerCompat getNotificationManager(@Nullable final Context context) {
        return NotificationManagerCompat.from(context == null ? CgeoApplication.getInstance() : context);
    }
A fresh not yet used notification id can be gathered via {@link cgeo.geocaching.settings.Settings#getUniqueNotificationId}
main/src/main/java/cgeo/geocaching/ui/notifications/Notifications.java