You are correct, the tracking codes are attached when running the cron manually. So the change needed to be done in “posti shipping” plugin.
Do you have good suggestion how to include plugin hooks “$this->admin?=?$this->load_admin_class()” only for cron, and not always? Please.