I saw an ANCS examples in sdk5.1.0(softdevice=6.0.0), and then I put this example to port to sdk4.4.2 (softdevice=5.2.1) and the example worked perfectly. But when I put the case into a complex project including many services, ANCS is not working properly.
Problems is in the step of searching service: when it run sd_ble_gattc_primary_services_discover(), the event's gatt_status in event_discover_rsp() of ble_ancs_c.c is 0x010a after running sd_ble_gattc_primary_services_discover() . And then, when I donot intial the NUS service or Initial ANCS before NUS, ANCS is running normally. What is the reason?
Attached here is my project. Sdk=4.4.2, softdevice=5.2.1