2
0
mirror of synced 2025-01-11 06:35:51 +00:00

385 Commits

Author SHA1 Message Date
Salakar
26338d8d62 [android][database] implement DataSnapshotToMapAsyncTask to address performance issue - #1284 2018-07-21 19:07:38 +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
Michael Diarmid
bbe92bc313
Merge pull request #1324 from aMarCruz/fix-studio-unresolved-errors
Fix "Failed to resolve" errors in Android Studio 3.3
2018-07-20 11:20:18 +01:00
Michael Diarmid
7acc1f78f2
Merge pull request #1312 from damienix/1308-fix-scheduled-notifications-after-reboot
[Android] Fix rescheduling notification on phone reboot
2018-07-20 11:16:19 +01:00
Michael Diarmid
408f998407
Merge pull request #1294 from dluksza/fix-past-date-scheduling
Honor repeatInterval when rescheduling outdated notication
2018-07-20 11:14:02 +01:00
aMarCruz
50e5a137b4 Fix "Failed to resolve" errors in Android Studio 3.3 2018-07-19 18:56:43 -05:00
Michael Diarmid
ce513f20e9
Merge pull request #1295 from invertase/fix-1288
[config][android] Handle remote config error
2018-07-18 21:59:51 +01:00
Elliot Hesp
0a1ab7b8dd [config] Return null/nil values on success 2018-07-18 21:35:57 +01:00
Damian Skrodzki
bf1b3317f0 #1308 Fix rescheduling notification on phone reboot 2018-07-18 00:39:03 +02:00
Salakar
a88fa18b68 Merge remote-tracking branch 'origin/master' 2018-07-13 14:03:28 +01:00
Salakar
96b8372873 [android] fixes 1012 2018-07-13 14:03:20 +01:00
David Gruseck
7f0d4ac10e merge master 2018-07-13 09:29:10 +02:00
Elliot Hesp
fc39b35e1a [config][android] Handle success value to match ios 2018-07-12 13:44:37 +01:00
Elliot Hesp
54743d945d [config][android] Explicitly handle task exception 2018-07-12 13:28:58 +01:00
Dariusz Luksza
c17cc50229 Properly compute new schedule date when old is in past 2018-07-11 18:11:56 +02:00
Dariusz Luksza
9144314eac Warn about changing notification schedule date 2018-07-11 17:39:32 +02:00
Dariusz Luksza
11ccbb42f6 Honor repeatInterval when rescheduling outdated notiication 2018-07-11 17:05:27 +02:00
Bilal Syed
c70af86e2e [Android] Fix getInitialLink() is NULL 2018-07-11 15:30:35 +03:00
Michael Diarmid
886efcaa62
Merge pull request #1276 from ifsnow/fix-android-schedule-date
[Android] Fix for setting past time in the scheduling.
2018-07-11 00:56:20 +01:00
Salakar
af43576da5 [auth][android] fix for #1249 2018-07-09 13:19:02 +01:00
Salakar
ed9c06c80f [android][auth] reset force resending token if phone number changes 2018-07-08 16:39:35 +01:00
Salakar
03dfbbdd47 [android][auth] add support for ForceResendingToken, closes #721 2018-07-08 16:22:16 +01:00
Salakar
bd1da5fd70 [android] update to com.google.firebase:firebase-messaging:17.1.0 2018-07-08 14:37:14 +01:00
Salakar
9d90a99fb0 [storage][js][android] make paths consistent - without trailing slashes in firebase.storage.Native.X #1200 2018-07-07 03:32:57 +01:00
Salakar
c13c81f36d [storage][ios] fix automatic mime/content type detection for storage meta 2018-07-07 03:10:35 +01:00
Salakar
d59ee569b6 [storage][android] fix automatic mime/content type detection for storage meta 2018-07-07 03:03:14 +01:00
ifsnow
5a21837fb9 Fix for setting past time in the scheduling. 2018-07-05 14:55:39 +09:00
kf
6d64ae8bc3 Update fabric tools version to 1.25.4 2018-07-03 23:23:40 +08:00
Chris Bianca
a79bf81418 [firestore] Add support for GetOptions #1248 2018-07-03 16:03:43 +01:00
Michael Diarmid
c291623af3
Merge pull request #1193 from caseyt/android-dynamic-config
Allow Android apps to use initializeApp() to configure firebase database
2018-06-25 16:59:29 +01:00
ifsnow
cbb35a0223 [Android] Fix setDefaults in Notifications. 2018-06-21 15:34:30 +09:00
Case Taintor
3652a05848 adds support for getToken(string,string) and deleteToken(string,string) to iid 2018-06-17 20:32:38 +02:00
Chris Bianca
69b2921ec2
Merge pull request #1164 from geriux/master
[Android] Support for areNotificationsEnabled
2018-06-17 16:27:03 +01:00
Chris Bianca
a32cb27c43 [notifications][android] Rename variable 2018-06-17 16:19:55 +01:00
Chris Bianca
fbc72dc2e3
Merge pull request #1221 from aMarCruz/drawable-resources
Adds support for drawable resources to AndroidNotification
2018-06-17 16:16:54 +01:00
Chris Bianca
dae0645006 [android] Update to latest version of android libs; Fix compilation issues 2018-06-17 15:59:47 +01:00
aMarCruz
b092ad1cd2 Adds support for drawable resources to AndroidNotification 2018-06-16 16:51:53 -05:00
Casey Tickes
796f50fc5b Updated RNFirebaseDatabase.java to use appName if provided 2018-06-08 10:55:53 -07:00
Chris Bianca
2a083f7deb [android][notifications] Fix for #1167 - progress bar not working 2018-06-03 17:32:40 +04:00
Gerardo Pacheco
d5e4808061 [android][messaging] Support for hasPermission using areNotificationsEnabled 2018-05-31 16:31:27 +02:00
Jude Fernandes
6e095be2bf
Resolve display notification promise
Once the notification is created the promise was not being resolved so in a situation where the user is waiting on the promise to complete, they would not get a callback and in case a user used async/await this would cause the app to get stuck at that point.
2018-05-22 01:20:52 +05:30
Chris Bianca
88b1cad8c4 [android][notifications] Change actions runInBackground to use showUserInterface instead 2018-05-18 08:26:16 +01:00
Chris Bianca
1f814d4cab [android][firestore] Ensure settings are preserved if settings is called multiple times 2018-05-18 07:58:32 +01:00
Chris Bianca
42e7fb2e5d [ios] Firebase iOS v5 support 2018-05-16 17:22:47 +01:00
Chris Bianca
34c0878098 [auth] Support email link in checkActionCode 2018-05-16 12:41:48 +01:00
Dariusz Luksza
17f7f39dac Implement handling of Android actions in background
There are some cases when local notification action should be handled in
background eg. snoozing the reminder. In case of it launching app UI is
not necessary and would be confusing for the end user.

Therefore there should be a way to handle local notification action in
background.

For this reason new property 'runInBackground' was added to the
AndroidAction class and TypeScript type.

Also new broadcast receiver and service were implemented to handle
properly background actions.

In order to run particular action in background API consumer need to set its
'runInBackground' property to 'true', eg:

  ...
  .android.addAction(new firebase.notifications.Android.Action("snooze",
  "ic_snooze", "Snooze").setRunInBackground(true))
  ...

Then, there are two cases that API consumer needs to handle.

First when app is in the foreground, standard notification and
notification action code path will be executed. This mean, that:
 * onNotification() listener will be called (which should call
 displayNotification(), in order to show it to the user),
 * onNotificationOpen() listener will be called after the action is
 tapped by the user

Secondly, when application is in background or it is not running new
'RNFirebaseBackgroundNotificationAction' handler will be called. To
properly handle this case API consumer should create a background
asynchronous handler:

  const handleAsyncTask = async (notificationOpen: NotifficationOpen) => {
    if (notificationOpen && notificationOpen.notification) {
      const action = notificationOpen.action;
      const notificationId = notificationOpen.notification.notificationId;
      if (action === "snooze") {
        console.log("Reschedule notification for later time", notificationId);
      } else {
        console.log("unsupported action", action);
      }
      // hide the notification
      firebase.notifications().removeDeliveredNotification(notificationId);
    }
  }

Next hander should be registered to headless handler:

  AppRegistry.registerHeadlessTask('RNFirebaseBackgroundNotificationAction', () => handleAsyncTask);

Finally AndroidManifest.xml file must be modified, to include receiver
and service definition:

  <receiver
      android:name="io.invertase.firebase.notifications.RNFirebaseBackgroundNotificationActionReceiver"
      android:exported="true">
    <intent-filter>
      <action android:name="io.invertase.firebase.notifications.BackgroundAction"/>
    </intent-filter>
  </receiver>
  <service android:name="io.invertase.firebase.notifications.RNFirebaseBackgroundNotificationActionsService"/>

Now when ever 'Snooze' action is pressed it will launch
'handleAsyncTask' function in the background or onNotificationOpen()
when app is in foreground. And reschedule the notification
for the later time.
2018-05-16 08:20:24 +02:00
Pranjal Jain
4efb0c4dcf fix(notifications): Resolve promise on after notification is cancelled 2018-05-15 01:57:03 +05:30
Dariusz Luksza
57901cd29a Add Android API to delete channel and channel group 2018-05-14 09:24:44 +02:00
Salakar
4a6f12ec59 [android][auth] add signInWithEmailLink native method 2018-05-13 00:36:22 +01:00
Salakar
15992f3ba9 [android][auth] add sendSignInLinkToEmail native method 2018-05-12 23:13:54 +01:00