382 Commits

Author SHA1 Message Date
wixmobile
ce7d56c996 Update package.json version to 3.1.2 and generate CHANGELOG.gren.md [ci skip] 2020-02-13 06:09:22 -05:00
Artal Druk
e37596f0f7 fix issue with UNUserNotificationCenterDelegate and the multicast delegate. the system completion handler needs to be called after all tasks are completed, otherwise they might be terminated. 3.1.2 3.1.1-snapshot.97 2020-02-13 12:20:10 +02:00
yogevbd
3fe5412641 Fix documentation, Closes #458 3.1.1-snapshot.95 2020-01-29 15:02:26 +02:00
Eytan Manor
8c4ae7e022 Fix wrong import (#443) 3.1.1-snapshot.94 3.1.1-snapshot.93 2020-01-29 13:56:57 +02:00
Bilal Abdeen
f5dcb84364 package wix.reactnativenotifications does not exist (#463)
Issue #461 

I got the following error message. 
package com.wix.reactnativenotifications does not exist

I fixed it by making the following changes. 

1. Added the following line to Project/app/build.gradle
implementation project(':react-native-notifications')

2. Changed the following lines in MainApplication.java 
-    protected List<ReactPackage> getPackages() {
-       return Arrays.<ReactPackage>asList(
-            new MainReactPackage(),
-	        // ...
-	        // Add this line:
-	        new RNNotificationsPackage(MainApplication.this)


+    protected List<ReactPackage> getPackages() {
+      @SuppressWarnings("UnnecessaryLocalVariable")
+      List<ReactPackage> packages = new PackageList(this).getPackages();
+       // ...
+       // Add this line:
+       packages.add(new RNNotificationsPackage(MainApplication.this)); 
+      return packages;
+   }
2020-01-29 13:55:53 +02:00
Bilal Abdeen
69a78bb941 referencing registerRemoteNotificationsRegistered (#466)
Under the title "registerRemoteNotifications", I made the following change. 
replaced: RemoteNotificationsRegistered
with: registerRemoteNotificationsRegistered
2020-01-29 13:55:11 +02:00
yogevbd
0f8269ea95 Fix getDeliveredNotifications, Closes #429 3.1.1-snapshot.92 2020-01-29 13:50:16 +02:00
Song Qian
780e3a3fde Fix resolve reject for getBadgeCount (#468) 3.1.1-snapshot.91 2020-01-29 13:48:31 +02:00
Ananta Bastola
ef8c740aba Fix react-native-notifications link path. (#452) 3.1.1-snapshot.90 2020-01-19 15:23:43 +02:00
Artal Druk
663109960c fix sending fcm token to JS 3.1.1 3.1.0-snapshot.88 2020-01-19 15:12:03 +02:00
yogevbd
9b3690e50f t push origin master Merge branch 'master' of github.com:wix/react-native-notifications 3.1.0-snapshot.87 2020-01-17 21:30:19 +02:00
yogevbd
6f20beb496 Fix docs 2020-01-17 21:29:40 +02:00
wixmobile
044982a060 Update package.json version to 3.1.0 and generate CHANGELOG.gren.md [ci skip] 2020-01-17 10:22:18 -05:00
yogevbd
4e6f4d82c8 Fix e2e 3.0.0-snapshot.84 3.1.0 2020-01-17 17:08:45 +02:00
yogevbd
e48dd02e5b Add tests coverage 2020-01-17 15:57:50 +02:00
yogevbd
3d62e3e0bd Update docs 2020-01-17 15:33:02 +02:00
yogevbd
adc97c36f4 Rename registerRemoteNotificationReceived to registerNotificationReceived 2020-01-17 15:26:47 +02:00
yogevbd
b54ba78b89 Rename registerRemoteNotificationOpened to registerNotificationOpened 2020-01-17 15:25:25 +02:00
yogevbd
8c50adb8f3 Add handling for both foreground and background received notification 2020-01-17 15:24:57 +02:00
Artal Druk
45d1f57a9f fix notification received event sent when the app is in the background. we need to add a new event for background receive 2020-01-16 16:02:14 +02:00
Artal Druk
fdd4fe40f5 when notifying notification data to JS, wrap in a map 2020-01-16 16:02:14 +02:00
Artal Druk
8c428ebcc7 fix token parameter to be wrapped in a map when sending to JS 2020-01-16 16:02:14 +02:00
Artal Druk
325e892eae separate notification dto identifier implementation 2020-01-16 16:02:14 +02:00
yogevbd
617c3bb508 Documentation improvements 3.0.0-snapshot.77 2020-01-16 14:36:33 +02:00
yogevbd
e29d01d28a Update getting-started.md 3.0.0-snapshot.76 2020-01-15 21:12:16 +02:00
wixmobile
3e8ecd2ec5 Update package.json version to 3.0.0 and generate CHANGELOG.gren.md [ci skip] 2020-01-15 11:42:38 -05:00
yogevbd
da5996d260 Update getting started doc 3.0.0 3.0.0-beta.4-snapshot.73 2020-01-15 18:19:21 +02:00
yogevbd
c2ea32414f Update getting started doc 3.0.0-beta.4-snapshot.72 2020-01-15 18:16:45 +02:00
yogevbd
0b7175f855 Add getting started doc 3.0.0-beta.4-snapshot.71 2020-01-15 17:58:13 +02:00
yogevbd
e8b8a807d9 Fix docs 3.0.0-beta.4-snapshot.70 2020-01-15 17:30:43 +02:00
yogevbd
46f628e27b Support react-native auto-linking 2020-01-15 17:30:29 +02:00
yogevbd
27b0f174fd Remove old docs 2020-01-15 17:16:05 +02:00
Yogev Ben David
006e4ab86f V3 (#437)
* Add typescript support

* Add unit tests

* Splits requestPermissionsWithCategories to two functions

* Done converting the js part to typescript

* typescript WIP

* Fix unit

* Fix e2e

* Identical API for Android and iOS

* Fix bundle

* build typescript before test-e2e-ios

* build typescript before test-e2e-ios

* Add docousaurus documentation

* Fix rebase from master

* Move android and ios folders into lib folder

* Split Notification.ts, Fix android example module

* Add test coverage for Notification.ts, clean old js files

* Updated docs

* Move ios and android commands to designated classes

* Remove package.json unused packages

* Fix e2e

* Fix docs, remove circleci config file

* 3.0.0-alpha.0

* Update README.md

* Fix js tests

* Add missing flavors

* Update release script

* Add pretest scripts

* Update release script

* Revert manual version change

* Fix release build

* Gradle resolve react-native version flavor

* Fix documentation website

* Add identical registerRemoteNotifications api for iOS and Android

* Finish API documentation

* Merge from master branch

* Fix build

* Remove NOTIFICATION_RECEIVED_FOREGROUND_EVENT_NAME

* Fix iOS example project

* Split specific iOS events, Update docs

* Add subscription documentation guide

* Add Local Notifications documentation guide

* Fix handling actions, Add event handling documentation guide

* Fix platforms logo

* Fix iOS unit tests

* Update package.json version to 3.0.0-beta.0 and generate CHANGELOG.gren.md [ci skip]

* Fix documentation

* Add prerelease script

* Update package.json version to 3.0.0-beta.1 and generate CHANGELOG.gren.md [ci skip]

* Add npm run docusaurus

* Add removeAllDeliveredNotifications support for both iOS and Android

* Add CI tag support

* Fix podspec

* Update iOS installation

* Fix android installation

* fix build.gradle rn package.json path

* Fix iOS

* Add NotificationFactory

* Fix tests

* Fix resolving gradle react native version

* find rn package.json by checking if the file exists instead of an exception in JsonSlurper

* Fix e2e

* Update package.json version to 3.0.0-beta.2 and generate CHANGELOG.gren.md [ci skip]

* Rename setBadgesCount to setBadgeCount

* add ios and android Notifications object getters

* Update package.json version to 3.0.0-beta.3 and generate CHANGELOG.gren.md [ci skip]

* Fix android token registration

* Update package.json version to 3.0.0-beta.4 and generate CHANGELOG.gren.md [ci skip]

Co-authored-by: wixmobile <41264282+wixmobile@users.noreply.github.com>
Co-authored-by: Artal Druk <artald@wix.com>
2020-01-15 17:13:07 +02:00
wixmobile
a6a5472d2b Update package.json version to 2.1.7 and generate CHANGELOG.gren.md [ci skip] 2019-12-14 12:42:37 -05:00
Rotem Mizrachi-Meidan
e980745d91 Update Robolectric setup (#422)
* Update dependencies and specifically robolectric setup to stop leaking the setup script to dependant projects.

* deleted deprecated script prepare-robolectric
2.1.7 2.1.6-snapshot.60
2019-12-14 19:21:28 +02:00
wixmobile
fbd964e70b Update package.json version to 2.1.6 and generate CHANGELOG.gren.md [ci skip] 2019-11-21 06:43:53 -05:00
roiberlin
c4535d682e add RNNotificationCenterMulticast (#411) 2.1.6 2.1.5-snapshot.57 2019-11-20 17:43:57 +02:00
wixmobile
9145155dd9 Update package.json version to 2.1.5 and generate CHANGELOG.gren.md [ci skip] 2019-10-28 07:56:01 -04:00
Yogev Ben David
cdddf35ff2 Allow cancel delivered notification with tag (#402)
* Allow cancel local notification with tag

* Rename to cancelDeliveredNotification
2.1.5 2.1.4-snapshot.54
2019-10-28 13:42:56 +02:00
wixmobile
319c567600 Update package.json version to 2.1.4 and generate CHANGELOG.gren.md [ci skip] 2019-10-28 05:04:46 -04:00
wixmobile
232d10fe3d Update package.json version to 2.1.4-beta.0 and generate CHANGELOG.gren.md [ci skip] 2.1.4 2019-10-27 18:58:13 -04:00
Yogev Ben David
feec43139a Remove all delivered notifications support for android (#401) 2.1.4-beta.0 3.0.0-beta.1-snapshot.49 2019-10-28 00:17:30 +02:00
Yogev Ben David
95d1a399de Remove vibrate permissions maxSdkVersion, fix example project on android (#388) 2.1.3-snapshot.40 2019-10-02 13:29:20 +03:00
Yogev Ben David
51097b28ad Xcode 11 support in CI (#384)
* Run detox e2e tests on iPhone 11

* Run detox e2e tests on iPhone 11

* Run detox e2e tests on iPhone 11

* Link CallKit framework for iOS 11

* Upgrade detox@14.x.x

* Add CallKit to example project frameworks
2.1.3-snapshot.39
2019-09-25 21:39:21 +03:00
wixmobile
d65dc4f60f Update package.json version to 2.1.3 and generate CHANGELOG.gren.md [ci skip] 2019-09-22 07:54:28 -04:00
yogevbd
88bc7c127f Fix release script 2.1.3 2.1.0-snapshot.34 2019-09-22 14:26:56 +03:00
yogevbd
8de8983a4c Fix changelog fileName 3.0.0-alpha.0-snapshot.30 2019-09-22 13:11:26 +03:00
Carlos Alcazar
a1510bae1b Fixing white square icon and annotation error (#379)
* Fixing issue with notification showing as a white square for application icons that do not follow the notification icon Standard. Should be a non breaking change as the fall back should pull the application icon if it's not defined

* Not sure how long this error has been here but we are importing the wrong thing. We should be importing NonNull as importing Nullable causes a build error. The RN 60 flavor of the file is importing the NonNull

* Updating documentation for the Icon

* Fixing image name and updating documentation

* Update installation.md

Forgot one more place to update the file name
3.0.0-alpha.0-snapshot.28
2019-09-22 12:57:23 +03:00
Yogev Ben David
f421c5127e Autogenerate changelog using github-release-notes (#382)
* Auto generate changelog

* Update .github/main.workflow

* Add skip-changelog as a valid PR label
3.0.0-alpha.0-snapshot.27
2019-09-22 12:51:56 +03:00
yogevbd
ccc188581b Fix main.workflow 3.0.0-alpha.0-snapshot.26 2019-09-20 18:29:04 +03:00