mattermost-mobile/app/constants/push_notification.ts
Daniel Espino García c5e6e34fea
Fix MM 56723 (#7883)
* Fix MM 56723 (iOS)

* Add android

* Android fixes and version checking

* Add version check to ios

* Address feedback

* Add all versions to android

* Check all versions on iOS

* Fix unhandled version case

* Add comments

* Add final version numbers
2024-04-24 17:12:56 +02:00

30 lines
716 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {defineMessage} from 'react-intl';
// Needed for localization on iOS native side
export const notVerifiedErrorMessage = defineMessage({
id: 'native.ios.notifications.not_verified',
defaultMessage: 'We could not verify this notification with the server',
});
export const CATEGORY = 'CAN_REPLY';
export const REPLY_ACTION = 'REPLY_ACTION';
export const NOTIFICATION_TYPE = {
CLEAR: 'clear',
MESSAGE: 'message',
SESSION: 'session',
};
export const NOTIFICATION_SUB_TYPE = {
CALLS: 'calls',
};
export default {
CATEGORY,
NOTIFICATION_TYPE,
REPLY_ACTION,
};