-
Notifications
You must be signed in to change notification settings - Fork 4
feat: Add App Message feature for displaying static backend message #530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
|
@ahmed-tarek-salem can you please add in the readme the information how this works |
|
Sure, the README file has been updated. |
| startDate: _parseDate(json['start_date']), | ||
| endDate: _parseDate(json['end_date']), | ||
| ); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ahmed-tarek-salem how localised message would be handled?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- can we also add the possibility to define the message for specific os version?
i.e android_os_version: <13
"Since beginning of next year, our app will only run on devices with Android 13 or upper." - can we also add a disabled true/false field to just disable easily a message. Default value would be false, meaning if not present, is assumed is enabled.
lib/dtos/app_message_dto.dart
Outdated
| message: json['message'] ?? '', | ||
| blocking: json['blocking'] ?? false, | ||
| platform: json['platform'] ?? 'all', | ||
| startDate: _parseDate(json['start_date']), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ahmed-tarek-salem can we use startDate and endDate instead?
I think we should prefer this format as it could be mapped automatically to object properties.
This PR implements the App Message feature, which fetches and displays a static blocking or non-blocking message provided by the endpoint.
The feature is still under development.