Commit Graph

63 Commits

Author SHA1 Message Date
Salakar c83ba8b756 [js][storage] uploadTask.on now correctly handles next or observer args as per firebase web sdk 2017-04-07 16:15:53 +01:00
Salakar d2a9bb7fa3 [js][auth] onAuthStateChange now correctly returns an instance of the User class. 2017-04-07 16:10:04 +01:00
Ben Styles 51a07fc4ee flow fixes that change logic slightly 2017-04-04 17:58:47 +01:00
Ben Styles 5acea6d218 initial commit: basic flow errors 2017-04-04 17:58:20 +01:00
Salakar 343710dbf9 [js][ios][messaging] fixed misc messaging .send() types 2017-04-03 10:33:18 +01:00
Salakar 91e9263965 [js][ios][android][messaging] full implementation of upstream send including RemoteMessage builder 2017-03-30 16:25:27 +01:00
Salakar 48e57d2065 [ios][android][auth] getToken now correctly accepts forceRefresh argument. Fixes #21. 2017-03-30 10:55:16 +01:00
Salakar 86512320f0 [js] move auth statics 2017-03-27 19:11:26 +01:00
Chris Bianca e25dd05576 Fix iOS messaging issue 2017-03-27 13:26:26 +01:00
Salakar bb6b1aa7f2 [android,js][database] transactions support implemented 2017-03-24 22:53:56 +00:00
Salakar 637afad444 [js][storage] misc comments 2017-03-23 00:54:19 +00:00
Salakar f1655c1ea6 [js] fixed issue with StorageTask.then/.catch 2017-03-22 23:23:48 +00:00
Salakar d15ae5cb27 [js] added firebase.storage.Native.* constants 2017-03-22 23:20:57 +00:00
Salakar d9023f55b8 [js][statics] implemented staticsOrInstance helper - fixes #12 2017-03-22 20:15:02 +00:00
Salakar 2f12569c60 [js][storage] misc 2017-03-22 19:57:42 +00:00
Salakar 00889e1a69 [js][storage] switch to native promises 2017-03-22 19:46:08 +00:00
Salakar d4c2f95cca [ios,js] full fcm implementation, first draft for ios 2017-03-21 15:11:07 +00:00
Salakar 7650ae42e4 [android,js] misc messaging 2017-03-21 11:26:16 +00:00
Salakar ea5d7d409f [js][auth] implemented currentUser.updateProfile() method 2017-03-18 01:10:34 +00:00
Salakar 916224014d [js][auth] implemented currentUser.updatePassword() method 2017-03-18 00:41:24 +00:00
Salakar f5b604bfdd [js][auth] added intercept to updateEmail 2017-03-18 00:31:28 +00:00
Salakar 5d67aaa9ef [js] implement currentUser.reauthenticate(credential) 2017-03-18 00:04:47 +00:00
Salakar 52713426d1 [js] implemented remaining auth providers on auth() : auth(). EmailAuthProvider, GithubAuthProvider, FacebookAuthProvider, TwitterAuthProvider and GoogleAuthProvider 2017-03-17 23:51:26 +00:00
Salakar 9d520c4693 [js] misc flow fixes in auth 2017-03-17 23:40:12 +00:00
Salakar 856da83a80 [android, ios] first draft of full fcm implementation - ios still todo 2017-03-17 16:04:39 +00:00
Salakar 46c84581ca firebase.crash().report() now accepts an error instead of a string, a string version of the error is generated before sending to native side. 2017-03-17 15:41:25 +00:00
Salakar f5d0bd002a [js] prefix snapshot internals with '_' 2017-03-16 16:48:03 +00:00
Salakar 9f5b132f38 [android, ios] currentUser.getToken() - now uses promise and correctly returns a string 2017-03-16 12:35:03 +00:00
Salakar b6c406c7aa [android] link/linkPassword 2017-03-16 12:19:34 +00:00
Salakar afece365e4 [android] start of auth().currentUser methods refactor 2017-03-15 20:17:04 +00:00
Salakar a780f9677d [android] finished refactor of auth() methods, currentUser methods still TODO 2017-03-15 20:05:09 +00:00
Salakar 1acbff834f [ios, android] fixed messaging() send() - now a promise on native - added stub method for ios as the existing one was empty 2017-03-15 14:00:28 +00:00
Salakar cd4664fb68 [ios] fixed messaging getToken, listen/unlisten token refresh 2017-03-15 13:05:56 +00:00
Salakar 6d52b6d4d3 messaging().getToken now correctly returns a string on both platforms 2017-03-15 12:57:36 +00:00
Salakar 0914a9341c [ios,android] WIP - moving auth to promises & fixing ios <-> android discrepancies 2017-03-14 19:04:16 +00:00
Salakar b18a7a0d6a switch ios onAuthStateChange handlers to new format 2017-03-14 10:57:57 +00:00
Salakar efb07c47c7 - moved user methods out of auth class into user class
- lint/flow
2017-03-13 20:27:44 +00:00
Salakar 15167a4f81 added auth method result interceptor - grab user objects and shim into currentUser 2017-03-13 20:02:44 +00:00
Salakar 7710dd94a7 implement currentUser.toJSON() method 2017-03-13 20:01:45 +00:00
Salakar 2509e7484d - switched signInAnonymously to use RN promises native side
- created helper to convert auth exceptions into cleaner web equivalent error codes/messages
2017-03-13 17:23:41 +00:00
Salakar 50d176427f android/js: cleanup / remove redundant code 2017-03-10 18:12:46 +00:00
Chris Bianca eab45d7dc8 Fix issues with Analytics 2017-03-10 14:43:09 +00:00
Chris Bianca 77a09f5810 Add Firebase Crash Reporting for iOS and Android 2017-03-10 14:18:07 +00:00
Salakar f509dfedff android: bump firebase version to 10.2.0 2017-03-10 10:46:55 +00:00
Salakar ccd90666f5 js: snapshot now returns cloned objects/arrays of this.value 2017-03-09 18:45:42 +00:00
Salakar 178b2e1d99 js: snapshot comments / flow type additions 2017-03-09 18:18:10 +00:00
Salakar 834980f9dd snapshot.forEach() now correctly implemented - now allows returning true to break iteration as per web sdk docs.
+ misc commenting / flow types
2017-03-09 17:53:35 +00:00
Salakar da8a2ec645 misc snapshot 2017-03-09 17:18:48 +00:00
Salakar e48e5c290e js: snapshot class incorrectly defining 'exists' as a bool prop, instead of a function 2017-03-09 15:27:49 +00:00
Salakar 2d1015d205 js: change db error to match firebase web sdk error 2017-03-08 13:21:21 +00:00