Add in-app message triggers on iOS and Unity

By default, all existing tagEvent calls can be used as display triggers for in-app messages. You can also add additional in-app display triggers that don't tag events.

Add the following code to your app, where triggerName describes your trigger. Use withAttributes if you want to trigger the in-app message only when certain attributes apply, where attributes is replaced with any required attribute names.

For iOS

[Localytics triggerInAppMessage:triggerName];
[Localytics triggerInAppMessage:trigger withAttributes:attributes];

For Unity

Localytics.TriggerInAppMessage(trigger);
Localytics.TriggerInAppMessage(trigger,attributes);