Commit Graph

46 Commits

Author SHA1 Message Date
Mattermost Build
8222390c98 MM-36687, MM-38302, MM-37598 Fix push notifications with CRT (#5669) (#5853)
* initalised

* Removed unused packages

* Android: Added groupId for supporting both threadId & channelId

* Fixed ios condition check

* Removed commented code

* Removed unwanted condition

* Removed unused variable

* CRT reduced chunk size to 30, Android global threads showing GlobalThreads & iOS is_crt_enabled field is expected to be a boolean

* Update android/app/src/main/java/com/mattermost/rnbeta/CustomPushNotification.java

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>

* Misc fixes

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
(cherry picked from commit 805b90205a)

Co-authored-by: Anurag Shivarathri <anurag6713@gmail.com>
2021-11-30 11:32:28 +02:00
Anurag Shivarathri
fe12190f4b App crash in android sometimes while opening the notifications (#5776)
* Checks for condition before removing the notification

* Misc
2021-10-24 14:40:28 -03:00
Elias Nahum
0947baeffe Android clear notification preferences on version change (#5666)
* Android clear notification preferences on version change

* remove spacings
2021-09-04 11:33:34 -04:00
Elias Nahum
29ec86b673 Properly handle notification snooze on Android (#5656) 2021-09-03 09:19:19 -04:00
Elias Nahum
8953f29623 Android Send Notification event to JS only once when the app is in the foreground (#5620) 2021-08-12 13:46:03 -04:00
Elias Nahum
ba78bc9d00 Properly group Android push notifications by channel (#5548) 2021-07-20 11:36:42 -04:00
Elias Nahum
78156ee75b 1.45 Release testing bug fixes (#5529)
* MM-36908 display unicode emoji in text field after selecting from autocomple

* MM-36935 Fix android crash when ammending search in Sidebar Jump to

* MM-36929 & MM-36928 fix notification badge resetting on new notification

* MM-36920 Fix android push notification issues

* MM-36922 Edit profile image

* Fix crash when opening Android test notification
2021-07-12 16:01:37 -04:00
Elias Nahum
65a14f309b Allow reply from individual notifications on Android (#5494) 2021-06-29 14:32:08 -04:00
Elias Nahum
b226d451f3 update dependencies (#4958)
* update dependencies

* revert keychain update

* Update dependencies & Fastlane

* set path agnostic for bash in scrips

* Fix open from push notification race

* patch react-native-localize
2020-11-18 19:45:07 -07:00
Miguel Alatzar
68457c5e7e Use substring over replaceFirst (#4707) 2020-08-20 14:55:09 -04:00
Miguel Alatzar
66a8f8a55f Send event to JS only if React initialized (#4668) 2020-08-13 11:19:59 -07:00
Elias Nahum
b85766ec31 MM-25931 Handle incoming session expired push notification (#4417) 2020-06-17 21:30:19 -04:00
Miguel Alatzar
4ce1d75733 Set number to 0 only if null (#3668) 2019-12-06 13:35:15 -05:00
Elias Nahum
3ac0db6f61 MM-20347 Handle Flag for ID Loaded Push Notifications (#3586)
* Fix id-loaded on Android

* Fix id-loaded on iOS

* Remove constant for PUSH_TYPE_ID_LOADED
2019-11-21 19:34:10 -03:00
Miguel Alatzar
f651da975f [MM-20640] Create notification channels only if supported (#3590)
* Create notification channels only if supported

* Update comment
2019-11-21 13:12:49 -03:00
Harrison Healey
b69c6af2b4 Merge branch 'master' into mark-as-unread 2019-11-19 09:57:43 -05:00
Miguel Alatzar
ba76e5eac7 [MM-16232] ID loaded push notifications (#3562)
* [MM-16232] Android: Fetch notification in notificationReceiptDelivery (#3552)

* Fetch notification in notificationReceiptDelivery

* Fix patch

* Fix patch take 2

* No need to send user_id to ack endpoint

* Just putString in mNotificationProps

* Fix patch take 3

* Revert react-native-notifications patch

* Update patch and fix rejections

* Remove trailing newline in patch

* Move PushNotification changes to end of patch

* npm cache test

* Revert "npm cache test"

This reverts commit d31030aaee.

* Created patch after upgrading node

* Created patch after upgrading node take 2

* Remove androidx changes from patch

* Patch packages then jetify

* Cache node_modules without patches

* Remove adding of default message (#3557)

* [MM-16232] iOS: Fetch id-loaded push notification from server (#3556)

* Fetch notification from server

* Parse fetched notification response

* Fix id-loaded notifications for DM/GM's

* audit fix

* Only add keys if they exist

* Throw exception if response code is not 200
2019-11-18 19:29:49 -03:00
Harrison Healey
d8f8dac79a Fix android senderName call (mark-as-unread) (#3471) 2019-10-25 13:45:40 -04:00
Harrison Healey
c27e96579f Merge branch 'master' into mark-as-unread 2019-10-23 17:25:48 -04:00
Miguel Alatzar
5e5d3abd79 [MM-17145] [MM-18947] [MM-17110] [MM-14926] [MM-18646] Use patched v2.0.6 of react-native-notifications and fix Android badge number (#3382)
* Refactor custom push notification code

* Use react-native-notifications 2.0.6 and patch for scheduled notifs

* Fix patch

* iOS changes

* Fix delete

* Fix setting of badge number on Android

* Undo Reflect removal

* Undo removal of didReceiveRemoteNotification

* Use min importance for push notifs received while app is active

* Correctly set badge number after push notificaiton reply

* Fix tests

* Localize reply action text

* Add getDeliveredNotifications

* Fix identifier check and failing test

* Fix local push notif test for Android > 9
2019-10-22 21:18:59 +03:00
Harrison Healey
ed2054592b MM-18463 Added update_badge notification when marking a channel as unread (#3352)
* MM-18463 Ignore update_badge push notifications and clean up Java

* MM-18463 Add iOS constants for push notification types

* Address feedback
2019-10-08 08:54:07 +03:00
Elias Nahum
0bb2522b5e MM-16281 Fix regression on android push notification messages (#2879) 2019-06-12 15:10:06 -04:00
Elias Nahum
5bf96272ae Notification receipt delivery for Android and iOS (#2755)
* Notification receipt delivery for Android and iOS

* Update Fastlane with iOS notification service extension

* User JSONObject to build response
2019-05-15 12:45:26 -04:00
Elias Nahum
fee9a96a11 MM-14885 Android use sender_name in push notifications (#2747) 2019-04-30 15:33:01 -07:00
Miguel Alatzar
6aaaaef09c [MM-14871] Fix extraction of sender name for push notifications (#2691)
* Return empty string for sender name when not found
2019-04-03 18:39:28 -07:00
Miguel Alatzar
531a743853 [MM-14866] Fix app crash due to parseInt call on null and display test notification message (#2690)
* Call setNumber on notification only if badge is not null

* Move setNumber call

* Add bundle to empty list
2019-04-03 10:15:05 -07:00
Elias Nahum
1777a4f750 MM-14316 Android Notifications and reply to notifications from native code (#2653)
* MM-14316 Android Notifications and reply to notifications from native code

* Feedback review

* Fix typo

* setBadgeIconType only for Android 8+
2019-03-20 16:39:36 -03:00
Elias Nahum
1eb046a7fd Android/iOS leave notifications until channel is read (#2321)
* iOS clear notifications from a specific channel when clear push notification received

* Android leave notifications until channel is read

* use redux-connect currentChannelId in network indicator
2018-11-19 13:20:44 -05:00
Elias Nahum
46b6687d1f Show local notification when replying to PN fails (#2142) 2018-09-21 00:58:21 +08:00
Elias Nahum
c24492be8f Android notification support for O and P (#2060) 2018-08-30 19:45:21 -03:00
Elias Nahum
44152ad5e5 Fix reply pending intent per channel (#1932) 2018-07-18 14:33:08 -04:00
Elias Nahum
95b5641ca7 Verify that the push notification version is not null (#1736) 2018-06-08 14:16:48 -04:00
Elias Nahum
64baa64057 Fix push notification styling backwards compatibility (#1729)
* Android Push notification style backwards compatible

* Fix fastlane android release build
2018-06-05 14:50:51 -04:00
Elias Nahum
21f2624bec Android Push notification styling improvements (#1683) 2018-05-18 10:13:38 -04:00
enahum
30863ef42b Make sure that channelIdToNotification is not null (#1320) 2017-12-22 16:11:00 -03:00
enahum
62cedae196 Multiple bug fixes (#1287) 2017-12-08 09:37:14 -05:00
enahum
76169720a5 Android: Avoid crash when clearing notifications (#1282) 2017-12-07 12:19:42 -03:00
Alexander Rashed
bbf4557b54 [1216] Use system default for vibration pattern (#1247) 2017-12-04 12:11:32 -03:00
enahum
aebe05fa1f Fix Android: Permission Denial when handling push notification (#1030) 2017-10-17 15:02:32 -04:00
enahum
6b103faa3b Fix ArrayIndexOutOfBounds and NullPointer exceptions for android push notifications (#1022) 2017-10-16 12:34:14 -03:00
Elias Nahum
ea4fc49d81 Fix Android crash on push notification 2017-10-05 10:25:15 -03:00
enahum
1fbf3e9e27 Android stack push notifications improvement (#912)
* Android multiple push notifications improvement

* Reverse order and remove duplicate
2017-09-18 12:02:24 -04:00
enahum
e0cfefcdff RN-138 Android notification preferences (#889)
* Fix Android and iOS flow

* Own review

* RN-138 Android notification preferences

* Feedback review

* Feedback review 2
2017-09-13 12:00:16 -03:00
enahum
60087e6b4d Enable replying from the push notification (#871)
* Enable replying from the push notification

* Fix Android and iOS flow

* Own review
2017-08-29 12:16:34 -03:00
enahum
c8b59895fa Android Notifications Support for Big View (#774) 2017-07-24 08:25:47 -04:00
enahum
8afd7fe1cd Renaming the bundle and package Ids (#721)
* Renamed to com.mattermost.rnbeta

* Fastlane for release of com.mattermost.rn

* Do not Publish apps directly to production

* Change ios icon format from jpeg to png
2017-07-07 16:37:05 -04:00