ANCS attribute filtering on subtitle or message
I'm not able to get ANCS notifications for a particular string using MBLANCSNotificationAttributeIDSubtitle or MBLANCSNotificationAttributeIDMessage. I'm setting attributeData with "MyString" as in ....
MBLEvent *event = [device.ancs eventWithCategoryIds:MBLANCSCategoryIDAny
eventIds:MBLANCSEventIDNotificationAdded
eventFlags:MBLANCSEventFlagAny
attributeId:MBLANCSNotificationAttributeIDSubtitle
attributeData:@MyString];
[event programCommandsToRunOnEventAsync:^{
[device.led flashLEDColorAsync:[UIColor redColor] withIntensity:1.0 numberOfFlashes:5];
[device.hapticBuzzer startBuzzerWithPulseWidthAsync:500 completion:^{
}];
}];
Anybody have insight on how to make this work? Does the attributeData when using MBLANCSNotificationAttributeIDSubtitle or MBLANCSNotificationAttributeIDMessage need a particular format?
BTW, MBLANCSNotificationAttributeIDTitle works however the notification title is not what I need to filter on.
Thank you
This discussion has been closed.
Comments