Commit Graph

2170 Commits

Author SHA1 Message Date
Ryan Grey 0291605934 Protect against multiple calls to start/stop handling native methods 2018-08-06 15:22:15 +01:00
Ryan Grey b53695ad52 Add RCTConverter+UIBackgroundFetchResult to handle auto conversion 2018-08-06 13:05:16 +01:00
Ryan Grey 5168f96a32 Only store completionHandlers on iOS native side when user adds listener
Note the following cases. This commit is catering for case 3:
1. User is listening for onNotificationDisplayed and is manually calling
the completionHandler
- manually called completionHandler is removed
- automatically called completionHandler is guarded against on iOS
native side

2. User is listening for onNotificationDisplayed and is not calling the
completionHandler:
- automatically called completionHandler is removed

3. User is not listening for onNotificationDisplayed
- On rn side we can only automatically call completionHandler if the
user _is_ listening. This means we need to detect if the user is
listening or not.
2018-08-06 13:04:44 +01:00
Ryan Grey 0d14a5e3b3 add notificationId to logging 2018-08-06 12:59:43 +01:00
Ryan Grey fac0767d5d pass noop for android platform 2018-08-06 12:59:43 +01:00
Ryan Grey b6885b0125 inject onNotificationDisplayed with completion handler 2018-08-06 12:59:43 +01:00
Ryan Grey e6cd793f91 Add exported native function to complete handling of ios notification 2018-08-06 12:59:40 +01:00
Salakar 3e052a7e85 [tests] update to detox 8.1.1 2018-08-06 03:37:28 +01:00
Salakar 42e18c8f52 update build script 2018-08-05 04:08:59 +01:00
Michael Diarmid 19b97cdd8e
Update README.md 2018-08-05 03:22:48 +01:00
Michael Diarmid d1db5929c8
Update README.md 2018-08-05 03:21:52 +01:00
Salakar 7d9be1efff removed codorial from project to invertase/tutorials 2018-08-05 02:47:52 +01:00
Salakar 85321b5246 restructure source + fix linting issues from new eslint version 2018-08-05 02:32:50 +01:00
Salakar 94738ef4a6 upgrade project to support React Native ^0.56.0 2018-08-05 02:23:09 +01:00
Salakar 2cce623612 remove old tests app - no longer in use / migrated to bridge 2018-08-05 02:20:26 +01:00
Salakar c42534da2d [tests] update test app to RN ^0.56.0 2018-08-05 02:19:32 +01:00
Salakar 9b9b2beb20 remove old/unused files 2018-08-05 02:18:10 +01:00
Salakar 52c63b5e18 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	android/src/main/java/io/invertase/firebase/crash/RNFirebaseCrash.java
#	android/src/main/java/io/invertase/firebase/crash/RNFirebaseCrashPackage.java
#	lib/index.d.ts
2018-08-04 22:47:04 +01:00
Salakar 1777e80427 [android][ios][js][tests] remove deprecated `.crash()` 2018-08-04 22:41:39 +01:00
Michael Diarmid 1d185c802e
Merge pull request #1316 from invertase/perf
Performance Monitoring upgrade
2018-08-04 22:00:20 +01:00
Michael Diarmid d2c432f961
Merge pull request #1372 from invertase/v5.x.x
v5.x.x
2018-08-04 21:59:52 +01:00
Salakar f4f5588f80 Merge branch 'v5.x.x' of https://github.com/invertase/react-native-firebase into v5.x.x 2018-08-04 21:57:45 +01:00
Salakar d2bc8543bb [android] refactor and formatting cleanup 2018-08-04 21:57:06 +01:00
Michael Diarmid 628531c98f
Merge pull request #1371 from invertase/master
Sync v5.x.x branch with master
2018-08-04 15:24:48 +01:00
Michael Diarmid edf28b9a6d
Merge pull request #1368 from invertase/v4.3.x
v4.3.x
2018-08-04 07:29:28 +01:00
Michael Diarmid c7ba3c0b33
Merge pull request #1362 from invertase/firestore-android-asynctask
[android][firestore] implement threaded snapshot serialization
2018-08-04 07:24:51 +01:00
Michael Diarmid fc5c8f1af8
Update README.md 2018-08-02 17:09:36 +01:00
Michael Diarmid e6945cb35a
Merge pull request #1355 from pranjal-jain/fix-alert-once
[Android] [Notifications] Fix setOnlyAlertOnce
2018-08-02 10:57:43 +01:00
Salakar 69fa5639c5 [android][firestore] implement Document and Query snapshot serialize async tasks 2018-08-01 23:01:34 +01:00
Salakar 0061ad9888 [android][firestore] cleanup 2018-08-01 23:00:40 +01:00
Michael Diarmid e7e89732c0
Update README.md 2018-08-01 12:47:35 +01:00
Michael Diarmid 937c7a23f8
Update Bug_report.md 2018-08-01 12:47:11 +01:00
Michael Diarmid 3ae754bd22
Update Feature_request.md 2018-08-01 12:46:41 +01:00
Michael Diarmid 061e1838dc
Update README.md 2018-08-01 12:45:54 +01:00
Salakar 81fee9f57a [ios][auth] fix checkActionCode bug - fixes #1304 2018-07-29 21:49:09 +01:00
Pranjal Jain 1d1a56ad3e fix(notifications): Fix alertOnlyOnce in android notifications 2018-07-29 06:25:08 +05:30
Bilal Syed 683ae83061 [iOS] Fix getInitialLink to handle unresolved url 2018-07-26 16:14:37 +03:00
Salakar f3e0d06608 4.3.8 2018-07-25 12:14:55 +01:00
Michael Diarmid 0a714fe465
Merge pull request #1341 from vonovak/patch-1
simplify obtaining notification title and body
2018-07-25 09:03:57 +01:00
Vojtech Novak 3078bae754
Update RNFirebaseNotifications.java 2018-07-25 09:31:13 +02:00
Michael Diarmid 455de03f27
Merge pull request #1337 from vonovak/fix1336
[android] prefer localized title and body to normal title and body
2018-07-24 18:22:19 +01:00
Vojtech Novak 5b516aeb09
add missing space 2018-07-24 17:22:19 +02:00
Vojtech Novak c3d56b1731
reverse order for better readability 2018-07-24 17:12:42 +02:00
Vojtech Novak b0fc98d0e6
log error when resource not found 2018-07-24 17:10:38 +02:00
Vojtech Novak deaf794271
prefer localized fields to the regular ones 2018-07-24 17:09:44 +02:00
Vojtech Novak 28dfbdf253
cast to (Object[]) 2018-07-24 16:01:16 +02:00
Vojtech Novak 109f8309cf use localized title and body unless normal title and body are sent
remove unused import
2018-07-24 15:33:04 +02:00
Salakar f17225d101 [ios][config] resolve correct null values 2018-07-21 20:31:32 +01:00
Salakar 26338d8d62 [android][database] implement DataSnapshotToMapAsyncTask to address performance issue - #1284 2018-07-21 19:07:38 +01:00
Salakar 66aa5ccb67 [ios][messaging] fix #1286 - 'getToken resolves to null if called too early' 2018-07-20 16:28:07 +01:00