How to use Backendless Push Service in android Oreo?

Hi, I have some problem with Backendless Push Service in android Oreo.
According android documentation (Background Execution Limits I can’t register my BackendlessCustomPushReceiver in manifest anymore.
How can I handle this issue?



what kind of error do you get?

03-15 14:04:29.225 32307-32307/ E/BroadcastReceiver: BroadcastReceiver trying to return result during a non-ordered broadcast
java.lang.RuntimeException: BroadcastReceiver trying to return result during a non-ordered broadcast
at android.content.BroadcastReceiver.checkSynchronousHint(
at android.content.BroadcastReceiver.setResultCode(
at com.backendless.push.BackendlessBroadcastReceiver.onReceive(
at Source:0)
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invoke(Native Method)
03-15 14:04:29.243 32307-32503/ W/Notification: Use of stream types is deprecated for operations other than volume control
03-15 14:04:29.244 32307-32503/ W/Notification: See the documentation of setSound() for what to use instead with to qualify your playback use case
03-15 14:04:38.746 32307-32504/ W/EnhancedIntentService: Service took too long to process intent: App may get closed.

Getting this error on push target device

Hi Roman

Thanks, for your reply, internal ticket BKNDLSS-16778 is created, and our engineer take a look on it asap

Regards, Vlad

Hi, Roman.
We’ve made changes in our Android sdk. Please use new version of library.

// [url=][/url]
compile group: 'com.backendless', name: 'backendless', version: '4.4.2'

Please, take into account that due to the new services start limitations in Android Oreo, you must declare permission for binding service.

 <service android:name=".PushService" 

// where PushService - is your service that extends com.backendless.push.BackendlessPushService

Hello, that’s solved my issue! Thanks for a quick solution and response!)

Regards, Roman