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.
Codebeispiel
val attributes = Attributes()
.put("displayName", "Roy Glass")
.put("subscribedAppInbox", true)
bird?.contact?.putAttributes(attributes) Codebeispiel
let attributes = Attributes()
.put("displayName", "Roy Glass")
.put("subscribedAppInbox", true)
bird?.contact.putAttributes(attributes: attributes)Codebeispiel
Bird.eventTarget.addEventListener('bird-sdk-initialized', async () => {
await Bird.contact.putAttributes({
displayName: "Roy Glass",
subscribedAppInbox: true,
});
});