Actionable notifications: IOS & Android

I’ve got both IOS & Android phones in the house. Looking at the doco, any actionable notifications & responses need to be defined twice; once per mobile os. Has anyone worked out a way to abstract the differences, or a nicer way?