In-App Alerts

Alerts are the best way to get the users attentions to a particular task, event or it can even be a reminder. We can classify alerts into two broad categories, “In-app alerts“ and “Push notifications“. In this section we will look into in-app alerts. For push notifications check out our push notifications section.

In-app alerts appear to user when they are active on the app, typically in the form of a popup or a full screen UI. In-app alerts are highly contextual and best suited to deliver alerts based on user activity.

Mobiconnect platform provides easy apis to achieve this with following features.

  • Rich alerts with images, video and personalised messages delivered to the users.

  • Schedule your alerts for particular time.

  • No need to send a blanket alert to every one. Target your alerts to a particular device type or a geo-segment.

Creating a rich alerts: create an in-app alert with the ability to attach an image/video and more information url along with title and description.

POST https://live.mobiddiction.com/api/notification 
Content-Type: "application/json"
Payload:
{
   "notifTitle":"Testing in-app alerts",
   "notifText":"Testing in-app alerts",
   "notifSound":null,
   "callToAction":"More info url",
   "scheduled":null,
   "push":false,
   "image":<imageId>
}

Schedule the alert: You can schedule your alerts to be sent at a later time by providing the scheduled timestamp.

POST https://live.mobiddiction.com/api/notification 
Content-Type: "application/json"
Payload:
{
   "notifTitle":"Test",
   "notifText":"testing schedule alerts",
   "notifSound":null,
   "callToAction":null,
   "scheduled":1608057000000,
   "push":false,
}

Segmented alert: You send alerts only to group of user or to users in a particular location. Make use of our segments module to group your audience and send alerts to select audience.

POST https://live.mobiddiction.com/api/notification 
Content-Type: "application/json"
Payload:
{
   "notifTitle":"Test",
   "notifText":"testing schedule alerts",
   "notifSound":null,
   "callToAction":null,
   "scheduled":1608057000000,
   "push":false,
   "segmentList":[
      {
         "id":1166
      }
   ]
}