Skip to content

Pushwoosh Capacitor Plugin 1.0.13

Choose a tag to compare

@PushwooshCI PushwooshCI released this 09 Oct 14:40
· 1 commit to main since this release

Breaking Changes

  • getTags() is typed as resolving to the flat tags object (tag name → value), the shape it has always returned at runtime; replace const { tags } = await Pushwoosh.getTags() with:
    const tags = await Pushwoosh.getTags();

New Features

  • Message Inbox API: loadMessages(), messagesCount(), unreadMessagesCount(), messagesWithNoActionPerformedCount(), readMessage(), readMessages(), deleteMessage(), deleteMessages() and performAction()
    const { messages } = await Pushwoosh.loadMessages();
    const { value: unread } = await Pushwoosh.unreadMessagesCount();
    await Pushwoosh.readMessage({ code: messages[0].code });
  • presentInboxUI(style?) accepts a typed InboxStyle (texts, colors, images relative to your app's webDir) and returns a promise that resolves once the inbox screen is shown
    await Pushwoosh.presentInboxUI({ barTitle: 'Inbox', accentColor: '#3366FF' });

Improvements

  • pushReceivedCallback and pushOpenedCallback no longer trigger Capacitor's native bridge deprecation warning
  • iOS: Swift Package Manager installs now include the Inbox UI used by presentInboxUI

Native SDKs