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