The getMessageCenterData method allows you to retrieve pushes you sent to your users in the past three months, within a specified range and quantity.
| Parameter | Data Type |
|---|---|
| limit | Number |
| startDate | Date |
| endDate | Date |
your title goes here
Make sure you pass the startDate and endDate values as timestamps.
Method Signature
getMessageCenterData(limit: number, startDate: Date, endDate: Date): Promise <any>;Method Example
const startDate = new Date(Date.now());
const endDate = new Date(Date.now() + 86400000);
const mData = await window.Insider.getMessageCenterData(100, startDate, endDate);Your title goes here
The getMessageCenterData method functions with a user-based mechanism. For example, if user A and user B log into the app on the same device, each user will see the push notifications they received.