Get message center data
- 23 Dec 2023
- 1 Minute to read
Get message center data
- Updated on 23 Dec 2023
- 1 Minute to read
Article Summary
Share feedback
Thanks for sharing your feedback!
This method allows you to retrieve the pushes that you sent to your users in the past 3 months in a defined range and quantity.
Parameter | Data Type |
---|---|
limit | Integer |
startDate | Date |
endDate | Date |
your title goes here
Make sure that you pass the values for startDate and endDate in timestamps.
Method Signature
Future getMessageCenterData(DateTime startDate, DateTime endDate, int limit) async
Method Example
// Call in async method.
final now = DateTime.now();
final yesterday = new DateTime(now.year, now.month, now.day - 1);
List<dynamic> notifications = await FlutterInsider.Instance.getMessageCenterData(yesterday, now, 1);
Your title goes here
This 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.
Was this article helpful?