An AnnounceKit widget shows your announcements inside your own product. Depending on its settings, it can also collect feature requests and feedback and show your roadmap. You can match it to your branding with colors, fonts and custom CSS, so it looks like a natural part of your interface.
This article shows how to put a widget in a web app and in a mobile app. To create the widget and choose its type, launcher and options first, see How to create widgets with AnnounceKit.
Find your widget's code
- In the sidebar, open Widgets.
- Click your widget.
- Open the Implementation tab.
Here is that path, from the widget list to the code on the Implementation tab.
A new widget has no code until you save it: click Save first. After a change, save again, because the widget code does not update until the changes are saved.
Show posts in a web app
The Implementation tab gives you an HTML element and Javascript code to paste into your pages. The steps, and everything you can pass in the code (labels, a language, user data, launcher styles), are in Widget Setup & API.
If your web app is built with React, Vue or Angular, or runs on WordPress, you can use a component or plugin instead of the plain code. They are listed under AnnounceKit SDK on the same tab:
- ReactJS Component
- Angular Component
- ReactJS Component (samples for React, Vue and Angular)
Show posts in a mobile app
Your app is the best place to announce updates, because that is where your users are. You publish from the AnnounceKit dashboard, and the posts appear in the app without a new App Store submission. Here is how an AnnounceKit widget can look inside a mobile app.
The mobile SDKs let you use widgets with the badge launcher, segmentation and user tracking. You set up the widget they show in the dashboard, under Widgets. The React Native SDK and the Flutter SDK are listed under AnnounceKit SDK on the Implementation tab.
React Native
Installation and a quick start are in React Native SDK for AnnounceKit.
Flutter
The Flutter SDK is published on pub.dev as announcekit_flutter. Its example app and setup guide are on GitHub, and the reference is in the Flutter SDK documentation. Follow the GitHub repository for updates.
iOS
The AnnounceKit Mobile SDK for iOS shows AnnounceKit widgets in your iOS app. The installation and setup steps are in the iOS SDK repository on GitHub and in the iOS SDK documentation.
Show each user the right posts
To show each user the posts meant for them and track who read what, add user tracking to your widget. See Set up User Tracking and segmentation data in your widget code. If you need a hand, drop us a message in the chat.