Push notifications - BackendlessFCMService.java Pending Intent throws error

Backendless Version (3.x / 6.x, Online / Managed / Pro )

6.3.2

Client SDK (REST / Android / Objective-C / Swift / JS )

Android

Expected Behavior

Receive push notification

Actual Behavior

When push notification is received, Pending intent throws errors in BackendlessFCMService.java

*Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.*

Thanks,
Constantin

Hello @Constantin_Craciunescu

Can you reproduce this issue with a maximally simplified and clear example to be sure this error is not because your code “scenery”

Then you can try to downgrade you sdk version to 11

Regards,
Viktor

It is confirmed this works on Android 11 and earlier versions…and I should have mentioned the issue happens on Android 12;

Looks like there are behaviours changes on Android 12 Pending intent (and Pending intent is being used in the BackendlessFCMService.java )

Regards,
Constantin

1 Like

Hi Constantin,

I created an internal ticket to investigate this further. For reference purposes the ticket number is BKNDLSS-28250. We will let you know as soon as we know more.

Regards,
Mark

1 Like

Hi, @Constantin_Craciunescu!

We have released the new version of Android SDK - 6.3.5 with the fix for the issue you desctibed above. Could you kindly let us know that it works for you?

Regards.
Marina

Hi Marina,
I will try and let you know. Thanks for the update
Costi

Hi Marina,

v6.3.5 does not contain a fix for this issue and respectively it is still present!
There is even a hanging PR about it in your GitHub! Can you finally apply this simple fix and release a new version ASAP? Google Play now requires that app updates target API level 31+. This means we cannot publish app updates!!!

Hi, @milen-marinov

We are sorry for this oversight. Android SDK including this fix will be released in the nearest time (approx in several days).

Regards,
Marina

1 Like

Hi, @milen-marinov

We did it. I’m sorry it took more than a few days. Fix for the issue described above was merged and released - Android SDK - 6.3.6. Please check whetever it work for you.

Regards,
Marina

1 Like