BILDIT-Platform / react-native-bildit-flybuy

React Native FlyBuy module. Supports Core, Pickup, Notify, and Presence Native SDK APIs.
9 stars 6 forks source link

Android Crash: No virtual method setForegroundServiceBehavior #79

Closed mohanenm closed 4 months ago

mohanenm commented 5 months ago

After upgrading to latest version of flybuy SDK(2.12.0) via bildit wrapped(2.3.3), we are facing a crash on our android app after placing an order.

The error message is as follows:

“java.lang.NoSuchMethodError: No virtual method setForegroundServiceBehavior(I)Landroidx/core/app/NotificationCompat$Builder”

Screenshot 2024-06-11 at 18 45 43
mohanenm commented 5 months ago

This particular error happens specifically when targeting the wrong android sdk version. this is our code the does this check and it's been this way for a while without issues.

One thing to try would be updating the android version that wrapper is targeting. Right now, it is targeting android 13, it should be targeting android 14.

mohanenm commented 5 months ago

This should be resolved in 2.3.4.