Commit Graph

363 Commits

Author SHA1 Message Date
Salakar 97bc7a88a8 Merge remote-tracking branch 'origin/master' 2018-04-13 15:08:17 +01:00
Salakar 61f283c8d3 [crash][ios] no longer force a crash on report() 2018-04-13 15:07:21 +01:00
Chris Bianca 23260691d4 [ios][notifications] Fix issue with iOS attachments #939 2018-04-13 15:02:27 +01:00
Chris Bianca 3a5686c226 [ios][notifications] Handle messaging token refreshed before bridge initialised #960 2018-04-13 14:23:55 +01:00
Chris Bianca f7b1b5bc79 [ios][notifications] Add another missing completionHandler call 2018-04-13 13:21:09 +01:00
Chris Bianca 67d70b9fb7 [ios][notifications] Add missing completionHandler 2018-04-13 12:18:17 +01:00
Chris Bianca fe44ca90b1 [notifications] Fix sound on iOS 10+ #974 2018-04-13 12:12:25 +01:00
Chris Bianca feb1315f84 [firestore] Ignore timestampsInSnapshotsEnabled on iOS 2018-04-13 10:10:05 +01:00
Chris Bianca b0abf23c6d [firestore] Add support for settings 2018-04-13 09:58:53 +01:00
Chris Bianca 1922a25198 [firestore] Add setLogLevel support 2018-04-13 08:41:57 +01:00
Chris Bianca cd5c616a93 [notifications][ios] Handle plain text alert #963 2018-04-11 18:23:34 +01:00
Chris Bianca 5127486712 [notifications][ios] Fix crashes when notifications are received in background on iOS 9 #952 2018-04-10 15:17:11 +01:00
Taxidermic 21dc57c70b remove @synthesize 2018-04-06 14:57:05 +03:00
Taxidermic 9c4deb541a fixes races bug in react-native > 0.52 2018-04-04 14:05:32 +03:00
Chris Bianca 801adabb27 [notifications] Add jsInitialised method to improve getInitialNotification 2018-03-30 10:31:06 +01:00
Chris Bianca 06c06b764f [invites] Add jsInitialised method to improve getInitialInvitation 2018-03-30 10:07:23 +01:00
Chris Bianca a6c63d4f50 [links] Introduce JS initialised method to improve getInitialLink 2018-03-30 09:25:41 +01:00
Chris Bianca d101813b5f [messaging][notifications] Make all methods return a promise where they didn’t previously 2018-03-28 11:02:39 +01:00
Chris Bianca dd940b953b [firestore] Add support for enable / disable network 2018-03-27 17:31:25 +01:00
Chris Bianca 7f90e485c8 [links] Refactor links to use builder classes 2018-03-23 13:24:31 +00:00
Chris Bianca 526ea04853 Merge branch 'ios-invites' 2018-03-23 11:47:28 +00:00
Chris Bianca 8918139fd0 [invites] Exclude pure links from getInitialInvitation 2018-03-23 11:46:48 +00:00
Chris Bianca 72a1d1d439 [invites][links] Fix some iOS specific issues 2018-03-23 10:33:17 +00:00
Chris Bianca a605a703fb
Merge pull request #881 from pocketgems/multiple_databases_3.3.0_upstream
Implement multiple database shard support
2018-03-23 08:35:01 +00:00
Chris Bianca 8e2d03cc5a [links][invites] Remove iOS 8 specific methods 2018-03-22 17:26:32 +00:00
Chris Bianca 878f928d8c [links] Tidy up links to match messaging and invitations implementation more closely 2018-03-22 16:57:33 +00:00
Chris Bianca d1d53a442d [invites] iOS getInitialInvitation and onInvitation functionality 2018-03-22 16:36:42 +00:00
Chris Bianca 54b419dfcf [invites] Initial iOS functionality 2018-03-22 14:56:49 +00:00
Chris Bianca 4173318379 [links] Tweak links event name 2018-03-22 14:56:15 +00:00
Chris Bianca 53babb4cd9 [invites] Initial JS and Android invites functionality 2018-03-22 12:46:37 +00:00
JinHao Chen cc8799b465 Implement multiple database shard support 2018-03-21 12:51:02 -07:00
Chris Bianca 7619548a2c Merge branch 'master' into fcm-rewrite
# Conflicts:
#	lib/modules/core/firebase.js
#	tests/ios/Podfile.lock
2018-03-08 09:32:57 +00:00
Michael Diarmid f1a7a13587
Merge branch 'master' into firestore-transactions 2018-03-05 00:05:37 +00:00
Salakar 5473083ebd [ios][firestore] transactions implementation 2018-03-04 23:47:10 +00:00
Salakar 49bb4a2aef [ios][database] formatting + fixed misc transactions type warning (now uses [transactionId stringValue]) 2018-03-04 23:45:37 +00:00
Chris Bianca bf2c31ca2d [tests] More auth tests 2018-03-02 09:47:13 +00:00
Chris Bianca 7acace4ce6 [notifications][ios] Properly define attachment options 2018-03-01 08:39:24 +00:00
Chris Bianca ee3b2932ef [notifications] Rename `onPressed` to `onOpened` 2018-02-24 11:32:14 +00:00
Chris Bianca 28b6d2b69c [messaging] Correctly resolve the promise after sending a message 2018-02-23 16:14:19 +00:00
Chris Bianca c5778c3d0d [notifications] JS tidy up 2018-02-23 16:11:59 +00:00
Chris Bianca 2838bbc0cd [notifications] Last part of iOS implementation 2018-02-23 15:34:00 +00:00
Chris Bianca 8e84dd576b [notifications] Specific notificationPressed data type including action 2018-02-22 17:25:15 +00:00
Chris Bianca 303cb4c428 [notifications] Refactor for better support of separate messages 2018-02-22 15:52:24 +00:00
Chris Bianca 831eec82f7 [messaging][notifications] Move all notifications from messaging to notifications 2018-02-18 17:09:13 +00:00
Chris Bianca a244f17853 [fcm] More iOS event separation 2018-02-18 16:02:31 +00:00
Chris Bianca b86d51f36b [fcm] Start considering multiple events 2018-02-16 09:47:46 +00:00
Chris Bianca 9255b4be10 [notifications] Minor fixes 2018-02-16 09:46:53 +00:00
skovhus 1623f389b8 Remove error log from RNFirebaseRemoteConfig
Leave it up to the consumer of the library to handle any errors instead of forcing a red error screen. In case the app is offline, it is perfectly fine to get a FIRRemoteConfigErrorInternalError error.
2018-02-15 19:07:15 +01:00
Chris Bianca cd0ef4e3b7 [notifications] Continue android implementation 2018-02-15 14:59:21 +00:00
Chris Bianca 665cd1a277 [notifications] Continued work on iOS notification functionality 2018-02-14 15:10:20 +00:00
Chris Bianca 6b911b207b [notifications] Start iOS implementation of notifications 2018-02-14 09:07:29 +00:00
Chris Bianca 7cac981468 [fcm] Tweak names to make things clearer 2018-02-09 09:23:03 +00:00
Chris Bianca e2f56ac93c [fcm] Fix iOS completion handlers 2018-02-09 07:28:59 +00:00
Chris Bianca 4ff20007f5 [fcm] Add iOS completion handlers 2018-02-08 17:07:20 +00:00
Chris Bianca cdb613bdee [ios] Make sure all UIApplication methods are called on main thread 2018-02-05 19:07:00 +00:00
Chris Bianca e329851c44 [ios] Android hasPermission method 2018-02-05 18:18:54 +00:00
Chris Bianca b5b02ed84d [ios] Add hasPermission method 2018-02-05 18:04:10 +00:00
Chris Bianca 93805062f7 [fcm] iOS 8/9 grant permission feedback 2018-02-05 17:45:08 +00:00
Chris Bianca 121a4d4b91 [fcm] iOS sendMessage support 2018-02-05 15:16:07 +00:00
Chris Bianca b71a2c7aec [fcm] iOS 8/9 support 2018-02-05 09:18:53 +00:00
Chris Bianca 3e7a1efe4e [fcm] iOS 10 support for messaging 2018-02-02 17:16:55 +00:00
Chris Bianca a460d8f809 [fcm] Work in progress iOS message support 2018-02-02 12:05:51 +00:00
Chris Bianca 850f04914f [fcm] Android instanceid and core fcm support; iOS instance and basic fcm support 2018-02-02 08:40:48 +00:00
Chris Bianca d429db7e86 [fcm] First steps towards identifying the new API for messaging / notifications 2018-01-30 11:15:59 +00:00
Chris Bianca 5f3a9755d7 [auth] Add OAuthProvider 2018-01-24 15:21:52 +00:00
Chris Bianca 248885f03e [auth] Add verifyPasswordResetCode 2018-01-24 12:20:06 +00:00
Chris Bianca d370d002fb [auth] Add withData methods 2018-01-24 09:46:39 +00:00
Chris Bianca 9396b4fb31 [auth] Add metadata support 2018-01-19 16:19:15 +00:00
Chris Bianca cb28c458a8 Merge commit '637cd81424b9a18cdec9735492a21f06be4e7ccf' 2018-01-18 09:49:27 +00:00
Chris Bianca a0de480fc7 [auth] Some flow types and tidy up 2018-01-18 09:49:11 +00:00
Michael Diarmid c14d9292b0
Merge pull request #655 from invertase/auth-language
Set auth language #654
2018-01-17 15:23:41 +00:00
Michael Diarmid 097ffbf494
Merge pull request #726 from AWDGroup/patch-1
Fixed: attempt to insert nil object from objects[0]
2018-01-17 15:16:45 +00:00
Michael Diarmid c9903706ab
Merge pull request #740 from hisokakei/ios-foreground-notif
Enable foreground notification on ios
2018-01-17 15:08:07 +00:00
Chris Bianca 285e31df65 [auth] Remove superfluous getCurrentUser method which doesn’t exist in API 2018-01-16 17:39:27 +00:00
Omer Levy 8d7152fe70 avoid call resolve on createShortDynamicLink error and remove try/catch in the js wrapper module 2018-01-12 16:39:18 +02:00
Chris Bianca 5e062868fc [firestore] Add FieldPath support to DocumentSnapshot and Query 2018-01-11 18:28:14 +00:00
Kevin 3c0f562716 Merge remote-tracking branch 'upstream/master' into ios-foreground-notif 2018-01-10 13:59:50 +08:00
Elliot Hesp 409cd70ab1 [auth] Update iOS methods to internals change 2018-01-08 10:07:15 +00:00
Jose Pablo Rocha, Jr 6d31320686
Set NSNumber to nonnull for storage config calls
Made change requested by Chris Bianca via Discord chat. New versions of react-native requires that all NSNumber arguments are explicitly marked as `nonnull` to ensure compatibility with Android.

Only changed for a few storage methods. The other method exports with NSNumber will probably need to be updated as well, but I did not have a project setup to test them.
2018-01-07 15:09:40 -06:00
Elliot Hesp 9d47709ffa Merge with master 2018-01-06 14:47:11 +00:00
Ardavan Kalhori 74d614ad43
Fixed: attempt to insert nil object from objects[0]
Fixed the issue that was causing a crash in my application:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000011310e12b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00000001127a6f41 objc_exception_throw + 48
	2   CoreFoundation                      0x000000011314e0cc _CFThrowFormattedException + 194
	3   CoreFoundation                      0x0000000113022951 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 321
	4   CoreFoundation                      0x00000001130227db +[NSDictionary dictionaryWithObjects:forKeys:count:] + 59
	5   Mesghal                             0x000000010ace08c2 sendDynamicLink + 226
	6   Mesghal                             0x000000010ace0d0f __71+[RNFirebaseLinks application:continueUserActivity:restorationHandler:]_block_invoke + 447
	7   libdispatch.dylib                   0x0000000113fcd2f7 _dispatch_call_block_and_release + 12
	8   libdispatch.dylib                   0x0000000113fce33d _dispatch_client_callout + 8
	9   libdispatch.dylib                   0x0000000113fd95f9 _dispatch_main_queue_callback_4CF + 628
	10  CoreFoundation                      0x00000001130d0e39 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	11  CoreFoundation                      0x0000000113095462 __CFRunLoopRun + 2402
	12  CoreFoundation                      0x0000000113094889 CFRunLoopRunSpecific + 409
	13  GraphicsServices                    0x00000001154d29c6 GSEventRunModal + 62
	14  UIKit                               0x000000010f60b5d6 UIApplicationMain + 159
	15  Mesghal                             0x000000010a6b688f main + 111
	16  libdyld.dylib                       0x000000011404ad81 start + 1
)
2018-01-05 16:43:02 -08:00
Chris Bianca 0fe2fec819 [internals] More tidy up and hiding of internal functions 2018-01-03 20:00:38 +00:00
Chris Bianca 865944d9a9 [ios][links] Remove warning for dynamic links 2017-12-15 16:09:02 +00:00
Chris Bianca a03c445e0c [auth] Add support for state in email actions 2017-12-07 12:36:51 +00:00
Chris Bianca efeb24d168 [crashlytics] Add first version of crashlytics functionality 2017-12-06 17:25:17 +00:00
Marcel Friedrich 22ace9e3ed add smartbanner landscape for iOS 2017-12-03 19:15:26 +01:00
Elliot Hesp c736a6bb51 [auth][ios] Add app language constants 2017-11-30 12:08:12 +00:00
Elliot Hesp b266a04510 [auth][ios] Add auth language methods 2017-11-30 10:17:04 +00:00
Salakar 66fcbd5c24 [ios][firestore] added `enableLogging(boolean)` method 2017-11-28 08:02:05 +00:00
Kevin 02ac39678e flag checking fix 2017-11-16 16:58:10 +08:00
Kevin 0577518578 fix for 'show_in_foreground' flag of local notification for iOS 10+ 2017-11-16 15:45:29 +08:00
Michael Diarmid 1b6e4cbaad
[ios][auth] updatePassword fix
updatePassword using default app always by default, now uses correct app
2017-11-10 22:03:15 +00:00
Michael Diarmid d005e2f0aa
Fix for #607
signOut using incorrect app instance
2017-11-10 22:00:42 +00:00
Chris Bianca a633dab4a2 [perf][ios] Fix traceWithName 2017-11-09 15:39:25 +00:00
Salakar 615450f763 [ios][database] added `setPersistenceCacheSizeBytes(bytes: integer);` 2017-11-08 11:32:18 +00:00
Salakar 152c6a63c3 [ios][database] add enableLogging method 2017-11-08 11:15:24 +00:00
Salakar 80c7faa0b1 [ios][perf] fix for #593 - trace incorrectly calling `startTraceWithName` instead of just `traceWithName` 2017-11-08 08:07:12 +00:00
Salakar 535de47ee1 [ios][auth] Fix issue with confirmPasswordReset, applyActionCode and checkActionCode not handling specific app instances 2017-11-07 09:54:38 +00:00
Chris Bianca e6b8ce193c Merge branch 'v3.0.x' 2017-11-01 17:47:15 +00:00
Chris Bianca 270279551a [firestore] Correctly support dates, geopoints, DocumentSnapshots and other types in startAt, startAfter, etc 2017-10-31 22:18:07 +00:00