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