Does not work push notification if apps is closed on Android 5 (Error broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg=com.flagg327.guicomaipu (has extras) }
),
but Android 6-7 work
Hello,
please follow this documentation https://backendless.com/docs/android/doc.html#dynanchor4
and also check this one https://github.com/Backendless/Android-SDK/blob/master/docs/push.md
my project corresponds this documentation
Why then on Android 5 does not work, but at 6.7 works
p.s. my project corresponds this documentation
What API level do you have? is it 21 or 22 ? Have you tested it in a simulator or a device?
Android Emulator - 5.1_WVGA_API_25:5554 and on device Lenovo 5.1.1 Api 22(maybe21)
Thanks! Also, I assume you are on the version 4 of Backendless and use the latest version of the SDK. Please confirm.
- version Backendless: 3.0.25
- sdk: 22
Now I have updated to version 4 Backendless, but the problem remained
compile group: ‘com.backendless’, name: ‘backendless’, version: ‘4.0.0-beta3’
To confirm - are you also using version 4 on the server side? It is the version displayed next to the Backendless logo in console.
3.0.0, Go to 4 version?
Yes. It is important that both backend and the client SDK are on the same major version.
Ok, I’ll try
Changed to 4.0.0v but still does not work
Any errors in the log?
Same error:
broadcast intent callback: result=CANCELLED forIntent { act=com.google.android.c2dm.intent.RECEIVE pkg= **** (has extras) }
is this the only line related to the failure?
yes
maybe problem in permission?