Commit Graph

426 Commits

Author SHA1 Message Date
Salakar
711d125423 [firestore][ios] arrayUnion & arrayRemove updated to accept any types including References & Objects 2019-01-04 21:00:26 +00:00
Salakar
d5fd178841 [ios][messaging] hasPermission now correctly returns true/false instead of 1/0 - fixes #1547 2019-01-04 13:10:43 +00:00
Michael Diarmid
1d83962f26 [messaging] getToken/deleteToken/onTokenRefresh improvements (#1805)
[IOS] [BUGFIX] [MESSAGING] fix getToken() always returning initialToken (#1510)

[ANDROID] [NOTICE] [MESSAGING] deprecate RNFirebaseInstanceIdService in favour of FirebaseMessagingService's onNewToken event. Remove this service from your AndroidManifest.xml

[IOS] [ANDROID] [INTERNAL] [MESSAGING] getToken & deleteToken now use Firebase InstanceID token management apis (with an FCM scope).
2019-01-03 17:01:51 +00:00
Guy Blank
a8ac5ef3fc Handle UNUserNotificationCenter completionHandlers (#1803)
[IOS][ENHANCEMENT][NOTIFICATIONS] - handle NSUserNotificationCenter completion handlers
2019-01-03 16:33:12 +00:00
Noah Allen
094b1b1621 Fixes #1788 NSNull vs nil issue (#1790)
* Fix "Unsupported value sent to buildTypeMap" error.

* Remove extra space.
2018-12-24 17:44:57 +00:00
Zhigang Fang
5c1e838ff5 Upgrade iOS version to iOS9 (#1784) 2018-12-23 14:53:21 +00:00
Michael Diarmid
831362838a [tests] iOS Firebase SDK v5.14.0 (#1735)
* Update Podfile

* Delete Podfile.lock

* Update config.yml

* Update config.yml

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]
2018-12-08 05:42:23 +01:00
Tim Wang
1ab8439748 Add enableCrashlyticsCollection to Crashlytics (#1718)
* Add enableCrashlyticsCollection to Crashlytics

* Fix typo

* Add e2e test

* Update e2e test

* Add program mark for fabric

* Update config.yml

increment yarn caching version - eslint bug

* Delete yarn.lock

* update yarn lock

* update Podfile.lock

* update Podfile.lock / yarn.lock

* update cache versions

* [tests] update podfile

* [tests][ci] remove pods cache =/

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]
2018-12-06 18:31:28 +01:00
Daehoon Kim
716b49a9cd Fix authStateChanged after app is reloaded (fixes #1677) (#1698) 2018-11-20 12:13:56 +00:00
Michael Diarmid
5120121797 [ios][android] Authentication improvements (#1663)
* [internals][js] nativeWithArgs wrapper incorrectly wrapping NativeModule constants - should only wrap functions

* [ios][android][js][auth] ensure user login state is consistent across RN reloads + tests

* remove test focus

* [android][auth] clear all auth state and id token listeners between React Native reloads

* [ios][auth] clear all auth state and id token listeners between React Native reloads

* [ios][auth] cleanup and add new auth error codes
2018-11-04 04:06:40 +00:00
Salakar
210c966443 [ios][notifications] missing default case + typo 2018-10-26 20:06:07 +01:00
Tim Wang
6858137563 Add IOSMessaging module for APNS specific methods (#1626)
[IOS] [FEATURE] [MESSAGING] - Add IOSMessaging module for APNS specific methods.
2018-10-25 06:12:52 +01:00
Andrzej Lewandowski
44c7c92acf [Android][IOS][Firestore] add arrayRemove and arrayUnion to FieldValue (#1624)
### Summary

Add methods arrayRemove and arrayUnion to work with arrays in firestore.

Fixes #1389

### Checklist
* [x]  Supports `Android`
* [x]  Supports `iOS`
* [x]  `e2e` tests added or updated in [/tests/e2e/*](/tests/e2e)
* [x]  Updated the documentation in the [docs repo](https://github.com/invertase/react-native-firebase-docs)

https://github.com/invertase/react-native-firebase-docs/pull/134

* [x]  Flow types updated
* [x]  Typescript types updated
2018-10-23 13:40:11 +01:00
Salakar
f7b0acdada [tests][ios] misc firestore transactions 2018-10-16 18:15:18 +01:00
Salakar
4b8d840648 [ios][notifications] fix completion crash: #1576 2018-10-16 18:14:32 +01:00
Salakar
5b8e9763c4 [ios][firestore] transactions re-work 2018-10-15 20:14:48 +01:00
Salakar
7992f6e359 [ios] update project file
[ios] update firebase sdks to v5.10.0
2018-10-14 16:43:29 +01:00
Salakar
f1a85a06f8 [auth][ios][android] ActionCodeInfo now correctly has an operation property (incorrectly set to actionType formerly) - fixes #1423 2018-09-26 08:02:59 +01:00
Salakar
e20652d67d [ios][crashlytics] add support for multiple crashlytics locations (pods vs manual linking) fixes #1401 2018-09-26 07:39:20 +01:00
Salakar
4ec5524645 [ios][crashlytics] add support for multiple crashlytics locations (pods vs manual linking) fixes #1401 2018-09-26 06:57:11 +01:00
Salakar
f98f21b0c9 [auth][ios] use claims provider if tokenResult provider empty 2018-09-25 21:44:41 +01:00
Salakar
aba018f357 [ios][auth] add native getIdTokenResult method 2018-09-25 20:11:59 +01:00
Salakar
6f2f455ea6 [ios][utils] add getISO8601String helper 2018-09-25 20:11:21 +01:00
Salakar
e0d1f64898 [ios][auth] rename native method for getIdToken 2018-09-25 18:57:33 +01:00
Salakar
192b509a40 [auth][[ios][js] deprecate all *AndRetrieveData* methods on auth() and User 2018-09-24 23:39:43 +01:00
Salakar
571d9b6031 [firestore][ios] re-write FirestoreDocReference internals + add support for Infinity & NaN numbers 2018-09-23 07:49:50 +01:00
Salakar
38b172835a [firestore][ios] 'array-contains' support 2018-09-20 13:19:20 +01:00
Salakar
324aaf6792 [auth][ios] apply Google c++ code style guide 2018-09-16 23:00:48 +01:00
Salakar
3f9f632eae [auth] implement firebase.auth.AuthSettings 2018-09-16 21:37:48 +01:00
Joel Arvidsson
a272910119 [auth] Support updatePhoneNumber 2018-09-10 15:36:40 +02:00
Håkon Knutzen
a506d1e5b5 [iOS] disable logging to application console in production (#1310)
* feat: replace NSLog statements with DLog statements

* Ignore me

Testing CI trigger
2018-09-07 18:37:50 +01:00
Salakar
c4b9b32eac [ios] add missing framework search paths 2018-09-02 04:52:41 +01:00
Salakar
e74a347dfc [perf][ios] annotate NSNumbers as nonnull to fix RN unspecified nullability compatibility error 2018-08-18 16:41:25 +01:00
Salakar
5fa86b8d1f [functions][ios] regions, multiapp & useFunctionsEmulator support 2018-08-16 15:05:51 +01:00
Michael Diarmid
742863d9df Merge pull request #1393 from ryanggrey/background-notification-fix-ios
Background notification fix for ios
2018-08-16 12:46:20 +01:00
Michael Diarmid
433127c4bc Merge pull request #1348 from bilalsyed001/master
[iOS] Fix getInitialLink to handle unresolved url
2018-08-14 01:53:55 +01:00
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
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
e6cd793f91 Add exported native function to complete handling of ios notification 2018-08-06 12:59:40 +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
Salakar
81fee9f57a [ios][auth] fix checkActionCode bug - fixes #1304 2018-07-29 21:49:09 +01:00
Bilal Syed
683ae83061 [iOS] Fix getInitialLink to handle unresolved url 2018-07-26 16:14:37 +03:00
Salakar
f17225d101 [ios][config] resolve correct null values 2018-07-21 20:31:32 +01:00
Salakar
66aa5ccb67 [ios][messaging] fix #1286 - 'getToken resolves to null if called too early' 2018-07-20 16:28:07 +01:00
Michael Diarmid
321e4a2909 Merge pull request #1058 from dgruseck/master
[Android] Add the ability to remove notifications based on the tag
2018-07-20 11:35:08 +01:00