Subscribe contacts to app inbox campaigns
When app inbox is properly configured, and SDKs are integrated in your application, an app inbox will be created for the contact. This enables you to build user Journeys that include sending app inbox messages.
In order to include the contact in app inbox Campaigns, you can subscribe the contact by setting the subscribedAppInbox attribute.
Codevoorbeeld
val attributes = Attributes()
.put("displayName", "Roy Glass")
.put("subscribedAppInbox", true)
bird?.contact?.putAttributes(attributes) Codevoorbeeld
let attributes = Attributes()
.put("displayName", "Roy Glass")
.put("subscribedAppInbox", true)
bird?.contact.putAttributes(attributes: attributes)Codevoorbeeld
Bird.eventTarget.addEventListener('bird-sdk-initialized', async () => {
await Bird.contact.putAttributes({
displayName: "Roy Glass",
subscribedAppInbox: true,
});
});