diff --git a/CHANGELOG.gren.md b/CHANGELOG.gren.md index c2751a877..86e5a58b8 100644 --- a/CHANGELOG.gren.md +++ b/CHANGELOG.gren.md @@ -1,5 +1,13 @@ # Changelog +## 5.0.0 (20/07/2023) + +#### Enhancements: + +- android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) + +--- + ## 4.3.5 (28/05/2023) #### Enhancements: @@ -163,7 +171,6 @@ #### Enhancements: - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) --- @@ -214,6 +221,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -237,7 +246,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -262,6 +270,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -285,7 +295,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -310,6 +319,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -333,7 +344,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -358,6 +368,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -381,7 +393,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -406,6 +417,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -429,7 +442,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -454,6 +466,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -477,7 +491,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -502,6 +515,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -525,7 +540,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -550,6 +564,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -573,7 +589,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -598,6 +613,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -621,7 +638,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -646,6 +662,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -669,7 +687,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -694,6 +711,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -717,7 +736,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -742,6 +760,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -765,7 +785,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -790,6 +809,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -813,7 +834,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -838,6 +858,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -861,7 +883,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -886,6 +907,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -909,7 +932,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -934,6 +956,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -957,7 +981,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -982,6 +1005,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -1005,7 +1030,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -1030,6 +1054,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -1053,7 +1079,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -1078,6 +1103,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -1101,7 +1128,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -1126,6 +1152,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -1149,7 +1177,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -1174,6 +1201,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -1197,7 +1226,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -1218,10 +1246,12 @@ --- -## 5.0.0 (31/12/1969) +## 5.1.0 (31/12/1969) #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -1245,7 +1275,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -1270,6 +1299,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -1293,7 +1324,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: @@ -1318,6 +1348,8 @@ #### Enhancements: +- Fix android build for RN 0.72 [#990](https://github.com/wix/react-native-notifications/pull/990) by [jshiherlis](https://github.com/jshiherlis) +- upgrade-android-33 [#995](https://github.com/wix/react-native-notifications/pull/995) by [DanielEliraz](https://github.com/DanielEliraz) - android-get-initial-notification [#983](https://github.com/wix/react-native-notifications/pull/983) by [DanielEliraz](https://github.com/DanielEliraz) - fix: remove deprecated config [#882](https://github.com/wix/react-native-notifications/pull/882) by [Naturalclar](https://github.com/Naturalclar) - fix-tests-from-#967 [#971](https://github.com/wix/react-native-notifications/pull/971) by [DanielEliraz](https://github.com/DanielEliraz) @@ -1341,7 +1373,6 @@ - stop using deprecated firebase iid [#751](https://github.com/wix/react-native-notifications/pull/751) by [DanielEliraz](https://github.com/DanielEliraz) - upgrade lodash to 4.17.21 [#747](https://github.com/wix/react-native-notifications/pull/747) by [DanielEliraz](https://github.com/DanielEliraz) - Provisional option in iOS registeration [#744](https://github.com/wix/react-native-notifications/pull/744) by [DanielEliraz](https://github.com/DanielEliraz) -- return to ios.registerRemoteNotifications name [#742](https://github.com/wix/react-native-notifications/pull/742) by [DanielEliraz](https://github.com/DanielEliraz) #### Bug Fixes: diff --git a/lib/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java b/lib/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java index 5b7f15f30..53b4030e2 100644 --- a/lib/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java +++ b/lib/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java @@ -95,7 +95,7 @@ private void callOnOpenedIfNeed(Activity activity) { Intent intent = activity.getIntent(); if (NotificationIntentAdapter.canHandleIntent(intent)) { Context appContext = mApplication.getApplicationContext(); - Bundle notificationData = NotificationIntentAdapter.extractPendingNotificationDataFromIntent(intent); + Bundle notificationData = intent.getExtras(); final IPushNotification pushNotification = PushNotification.get(appContext, notificationData); if (pushNotification != null) { pushNotification.onOpened(); diff --git a/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/NotificationIntentAdapter.java b/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/NotificationIntentAdapter.java index 1e7e8719b..ba48f55d3 100644 --- a/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/NotificationIntentAdapter.java +++ b/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/NotificationIntentAdapter.java @@ -14,17 +14,11 @@ public class NotificationIntentAdapter { @SuppressLint("UnspecifiedImmutableFlag") public static PendingIntent createPendingNotificationIntent(Context appContext, PushNotificationProps notification) { - if (canHandleTrampolineActivity(appContext)) { - Intent intent = new Intent(appContext, ProxyService.class); - intent.putExtra(PUSH_NOTIFICATION_EXTRA_NAME, notification.asBundle()); - return PendingIntent.getService(appContext, (int) System.currentTimeMillis(), intent, PendingIntent.FLAG_ONE_SHOT); - } else { - Intent mainActivityIntent = appContext.getPackageManager().getLaunchIntentForPackage(appContext.getPackageName()); - mainActivityIntent.putExtra(PUSH_NOTIFICATION_EXTRA_NAME, notification.asBundle()); - TaskStackBuilder taskStackBuilder = TaskStackBuilder.create(appContext); - taskStackBuilder.addNextIntentWithParentStack(mainActivityIntent); - return taskStackBuilder.getPendingIntent((int) System.currentTimeMillis(), PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_IMMUTABLE); - } + // Fix local notification press reloading the app + // https://github.com/RocketChat/Rocket.Chat.ReactNative/pull/4585/commits/153fe2a9fe46a46e0c8dbda1afc6f8b5ff1d60e6 + Intent intent = appContext.getPackageManager().getLaunchIntentForPackage(appContext.getPackageName()); + intent.putExtra(PUSH_NOTIFICATION_EXTRA_NAME, notification.asBundle()); + return PendingIntent.getActivity(appContext, (int) System.currentTimeMillis(), intent, PendingIntent.FLAG_UPDATE_CURRENT | PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_IMMUTABLE); } public static boolean canHandleTrampolineActivity(Context appContext) { diff --git a/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/ReactAppLifecycleFacade.java b/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/ReactAppLifecycleFacade.java index 325ac5504..91c714195 100644 --- a/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/ReactAppLifecycleFacade.java +++ b/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/ReactAppLifecycleFacade.java @@ -47,11 +47,7 @@ public synchronized boolean isReactInitialized() { return false; } - try { - return mReactContext.hasActiveCatalystInstance(); - } catch (Exception e) { - return mReactContext.hasActiveReactInstance(); - } + return mReactContext.hasActiveReactInstance(); } @Override diff --git a/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java b/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java index ac0427481..6cd40e585 100644 --- a/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java +++ b/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java @@ -42,8 +42,8 @@ public void onAppVisible() { public void onAppNotVisible() { } }; - final private String DEFAULT_CHANNEL_ID = "channel_01"; - final private String DEFAULT_CHANNEL_NAME = "Channel Name"; + final private String DEFAULT_CHANNEL_ID = "exodus"; + final private String DEFAULT_CHANNEL_NAME = "Exodus Default"; public static IPushNotification get(Context context, Bundle bundle) { Context appContext = context.getApplicationContext(); @@ -118,6 +118,18 @@ protected void digestNotification() { } protected PushNotificationProps createProps(Bundle bundle) { + if (bundle != null) { + // pinpoint UI message sending compatibility + if (!bundle.containsKey("body") && bundle.containsKey("pinpoint.notification.body")) { + bundle.putString("body", bundle.getString("pinpoint.notification.body")); + } + if (!bundle.containsKey("title") && bundle.containsKey("pinpoint.notification.title")) { + bundle.putString("title", bundle.getString("pinpoint.notification.title")); + } + if (!bundle.containsKey("url") && bundle.containsKey("pinpoint.deeplink")) { + bundle.putString("url", bundle.getString("pinpoint.deeplink")); + } + } return new PushNotificationProps(bundle); } diff --git a/lib/android/app/src/main/java/com/wix/reactnativenotifications/fcm/FcmToken.java b/lib/android/app/src/main/java/com/wix/reactnativenotifications/fcm/FcmToken.java index 7db6e8d88..290850462 100644 --- a/lib/android/app/src/main/java/com/wix/reactnativenotifications/fcm/FcmToken.java +++ b/lib/android/app/src/main/java/com/wix/reactnativenotifications/fcm/FcmToken.java @@ -88,14 +88,19 @@ protected void refreshToken() { } protected void sendTokenToJS() { - final ReactInstanceManager instanceManager = ((ReactApplication) mAppContext).getReactNativeHost().getReactInstanceManager(); - final ReactContext reactContext = instanceManager.getCurrentReactContext(); - + ReactContext reactContext; + if (com.facebook.react.BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) { + reactContext = ((ReactApplication) mAppContext).getReactHost().getCurrentReactContext(); + } else { + final ReactInstanceManager instanceManager = ((ReactApplication) mAppContext).getReactNativeHost().getReactInstanceManager(); + reactContext = instanceManager.getCurrentReactContext(); + } // Note: Cannot assume react-context exists cause this is an async dispatched service. - if (reactContext != null && reactContext.hasActiveCatalystInstance()) { + if (reactContext != null && reactContext.hasActiveReactInstance()) { Bundle tokenMap = new Bundle(); tokenMap.putString("deviceToken", sToken); mJsIOHelper.sendEventToJS(TOKEN_RECEIVED_EVENT_NAME, tokenMap, reactContext); } } + } diff --git a/lib/android/build.gradle b/lib/android/build.gradle index 5f8df2e7b..119b232b1 100644 --- a/lib/android/build.gradle +++ b/lib/android/build.gradle @@ -13,7 +13,7 @@ buildscript { mavenLocal() mavenCentral() google() - jcenter() + mavenCentral() } dependencies { classpath "com.android.tools.build:gradle:$androidGradlePluginVersion" @@ -27,7 +27,7 @@ allprojects { mavenLocal() mavenCentral() google() - jcenter() + mavenCentral() maven { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../../node_modules/react-native/android" diff --git a/lib/ios/RNCommandsHandler.m b/lib/ios/RNCommandsHandler.m index 55049299e..d0dca93c7 100644 --- a/lib/ios/RNCommandsHandler.m +++ b/lib/ios/RNCommandsHandler.m @@ -22,7 +22,11 @@ - (void)setCategories:(NSArray *)categories { } - (void)getInitialNotification:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { - NSDictionary* initialNotification = [[RNNotificationsStore sharedInstance] initialNotification]; + NSDictionary* initialNotification; + if([[RNNotificationsStore sharedInstance] notificationTapped]){ + [[RNNotificationsStore sharedInstance] setNotificationTapped:NO]; + initialNotification = [[RNNotificationsStore sharedInstance] initialNotification]; + } [[RNNotificationsStore sharedInstance] setInitialNotification:nil]; resolve(initialNotification); } diff --git a/lib/ios/RNNotificationEventHandler.m b/lib/ios/RNNotificationEventHandler.m index 5c8dd0b35..ae6f4b945 100644 --- a/lib/ios/RNNotificationEventHandler.m +++ b/lib/ios/RNNotificationEventHandler.m @@ -30,6 +30,7 @@ - (void)didReceiveForegroundNotification:(UNNotification *)notification withComp - (void)didReceiveNotificationResponse:(UNNotificationResponse *)response completionHandler:(void (^)(void))completionHandler { [_store setActionCompletionHandler:completionHandler withCompletionKey:response.notification.request.identifier]; + [_store setNotificationTapped:true]; [RNEventEmitter sendEvent:RNNotificationOpened body:[RNNotificationParser parseNotificationResponse:response]]; } diff --git a/lib/ios/RNNotificationsStore.h b/lib/ios/RNNotificationsStore.h index 4f8a17199..dcd2fa449 100644 --- a/lib/ios/RNNotificationsStore.h +++ b/lib/ios/RNNotificationsStore.h @@ -5,6 +5,7 @@ @interface RNNotificationsStore : NSObject @property (nonatomic, retain) NSDictionary* initialNotification; +@property BOOL notificationTapped; + (instancetype)sharedInstance; diff --git a/package.json b/package.json index ef5395a8a..64ebfa9b8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "react-native-notifications", - "version": "5.0.0", + "name": "@exodus/react-native-notifications", + "version": "5.1.0-exodus.1", "description": "Advanced Push Notifications (Silent, interactive notifications) for iOS & Android", "license": "MIT", "keywords": [ @@ -76,11 +76,11 @@ }, "repository": { "type": "git", - "url": "https://github.com/wix/react-native-notifications.git" + "url": "https://github.com/ExodusForks/react-native-notifications.git" }, - "homepage": "https://github.com/wix/react-native-notifications", + "homepage": "https://github.com/ExodusForks/react-native-notifications", "bugs": { - "url": "https://github.com/wix/react-native-notifications/issues" + "url": "https://github.com/ExodusForks/react-native-notifications/issues" }, "jest": { "preset": "react-native",