fix(fdroid): Firebase-free stubs for expo-notifications

This commit is contained in:
Den
2026-06-03 03:06:39 -07:00
parent a22fcb92e9
commit e1948601b0

View File

@@ -0,0 +1,37 @@
package expo.modules.notifications.notifications.interfaces;
import android.os.Bundle;
import expo.modules.notifications.notifications.model.Notification;
import expo.modules.notifications.notifications.model.NotificationResponse;
/**
* Patched version (Firebase-free) for F-Droid builds.
* Removed: import com.google.firebase.messaging.FirebaseMessagingService (only used in javadoc).
*/
public interface NotificationListener {
/**
* Callback called when new notification is received while the app is in foreground.
*/
default void onNotificationReceived(Notification notification) {
}
/**
* Callback called when new notification response is received.
*/
default boolean onNotificationResponseReceived(NotificationResponse response) {
return false;
}
/**
* Callback called when notification response is received through package lifecycle listeners.
*/
default void onNotificationResponseIntentReceived(Bundle extras) {
}
/**
* Callback called when some notifications are dropped.
*/
default void onNotificationsDropped() {
}
}