Commit Graph

2132 Commits

Author SHA1 Message Date
Ryan Grey 89f7698e5f Merge branch 'master' into background-notification-fix-ios 2018-08-13 08:28:37 +01:00
Ryan Grey 6a69ae66b1 Auto complete early when no user listeners.
This is to clear up memory on the objective-c side without needing to
signal the start/stop of user listeners.
2018-08-10 17:13:02 +01:00
Ryan Grey a8b4435abf Update ts types 2018-08-10 10:16:07 +01:00
Michael Diarmid 098edb35b5
Merge pull request #845 from ajcrites/type-modules
Improving type definitions to better match firebase-js-sdk
2018-08-09 17:16:57 +01:00
Andrew Crites 68ea9120ca
[types]: Export config property from firebase 2018-08-09 11:30:52 -04:00
Andrew Crites 1d56ddda6d
[types]: Rename FireStore to Firestore. Remove deleted crash export 2018-08-09 11:27:48 -04:00
Andrew Crites 12af6f39f3
[types]: adding module for config 2018-08-09 11:19:59 -04:00
Andrew Crites 1d91cad542
[types]: Format typings and export new additions 2018-08-09 11:19:41 -04:00
Andrew Crites c61f860d67
[types]: Completing TypeScript module definitions 2018-08-09 11:19:01 -04:00
Andrew Crites 317bc6be18
[types]: TypeScript modules for easier import
* database

* storage
2018-08-09 11:18:09 -04:00
Andrew Crites adba9467e7
[module] Export module functions directly 2018-08-09 11:14:46 -04:00
Ryan Grey ab42108234 Add auto call to done which awaits the listener before doing so
The idea is to catch any cases where the API user is not calling done manually.
This has the issue that we've modified pre-existing function to take a
Promisified callback instead of just a callback. Any user upgrading to a
version that contains this that does not read the upgrade guide and make
appropriate changes will:
- be passing a plain callback (not promisified)
- not be calling done
- may be performing async (something that triggers a later callback) in their
onNotificationDisplayed handler.

This all means that we will be auto calling `done` prior to them performing
any background work. This is exactly how things worked prior to these changes
so perhaps the user is no worse off.
2018-08-08 11:09:02 +01:00
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