I’m trying to implement a native notification feature under OS X. All works fine except I get spammed with DeviceReject event by the API. For FolderReject it works fine (only once in a while a event as expected). See a trace below, hopefully it is helpfull. Maybe we are using it wrong, but I did read the documentation every event is generated by syncthing itself with a incrementing ID.
2018-07-05 22:34:05.745762+0200 Syncthing[27986:1877616] ui {
data = {
address = "[fe80::e0e7:39ff:fed7:12cd%en1]:49716";
device = "J5F2YGI-JS4NXTK-XTJFCUZ-4HKMHRM-ZY6W2GC-MZDVGLA-5TG7HEL-IWSCMAY";
name = boembats;
};
globalID = 587;
id = 587;
time = "2018-07-05T22:33:57.949805995+02:00";
type = DeviceRejected;
}
2018-07-05 22:35:00.353231+0200 Syncthing[27986:1877616] ui {
data = {
address = "[fe80::e0e7:39ff:fed7:12cd%en1]:49724";
device = "J5F2YGI-JS4NXTK-XTJFCUZ-4HKMHRM-ZY6W2GC-MZDVGLA-5TG7HEL-IWSCMAY";
name = boembats;
};
globalID = 590;
id = 590;
time = "2018-07-05T22:34:58.049999319+02:00";
type = DeviceRejected;
}
2018-07-05 22:39:37.322868+0200 Syncthing[27986:1877616] ui {
data = {
address = "[fe80::e0e7:39ff:fed7:12cd%en1]:49756";
device = "J5F2YGI-JS4NXTK-XTJFCUZ-4HKMHRM-ZY6W2GC-MZDVGLA-5TG7HEL-IWSCMAY";
name = boembats;
};
globalID = 603;
id = 603;
time = "2018-07-05T22:38:58.810907493+02:00";
type = DeviceRejected;
}
2018-07-05 22:39:37.889730+0200 Syncthing[27986:1877616] ui {
data = {
address = "185.194.141.93:22067";
device = "J5F2YGI-JS4NXTK-XTJFCUZ-4HKMHRM-ZY6W2GC-MZDVGLA-5TG7HEL-IWSCMAY";
name = boembats;
};
globalID = 602;
id = 602;
time = "2018-07-05T22:38:57.786512907+02:00";
type = DeviceRejected;
}
2018-07-05 22:39:38.929579+0200 Syncthing[27986:1877616] ui {
data = {
address = "[fe80::e0e7:39ff:fed7:12cd%en1]:49748";
device = "J5F2YGI-JS4NXTK-XTJFCUZ-4HKMHRM-ZY6W2GC-MZDVGLA-5TG7HEL-IWSCMAY";
name = boembats;
};
globalID = 599;
id = 599;
time = "2018-07-05T22:37:58.397312138+02:00";
type = DeviceRejected;
}
2018-07-05 22:39:39.513555+0200 Syncthing[27986:1877616] ui {
data = {
address = "[fe80::e0e7:39ff:fed7:12cd%en1]:49742";
device = "J5F2YGI-JS4NXTK-XTJFCUZ-4HKMHRM-ZY6W2GC-MZDVGLA-5TG7HEL-IWSCMAY";
name = boembats;
};
globalID = 596;
id = 596;
time = "2018-07-05T22:36:58.280664525+02:00";
type = DeviceRejected;
}
2018-07-05 22:39:40.121382+0200 Syncthing[27986:1877616] ui {
data = {
address = "[fe80::e0e7:39ff:fed7:12cd%en1]:49734";
device = "J5F2YGI-JS4NXTK-XTJFCUZ-4HKMHRM-ZY6W2GC-MZDVGLA-5TG7HEL-IWSCMAY";
name = boembats;
};
globalID = 593;
id = 593;
time = "2018-07-05T22:35:58.130836598+02:00";
type = DeviceRejected;
}