Page 1 of 2

Upgrade to Android 8.0 breaks push

Posted: Wed Sep 26, 2018 8:31 am
by Chris6743166

Hi,

When I update an app to Android 8.0 (from 7.0), push stops working on Android. I've made no other changes.

When a push is sent, I get the following message on the app "Cynllaith keeps stopping".

The app is shared with support. It's called Bro Cynllaith (23a2336a-e321-4627-a7f0-654b5ae472db)

Can you help?

Thanks,

Chris


Upgrade to Android 8.0 breaks push

Posted: Wed Sep 26, 2018 12:26 pm
by Serhii Kulibaba

Hello,

You use the Push plugin with a version 1.8.4
Please select the last one (2.1.2)


Upgrade to Android 8.0 breaks push

Posted: Wed Sep 26, 2018 12:31 pm
by Chris6743166

Thanks for the reply. I have already tried that, but got this build error:

pre
(node:26286) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /app/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.
/pre


Upgrade to Android 8.0 breaks push

Posted: Thu Sep 27, 2018 9:10 am
by Serhii Kulibaba

Have you enabled Push Notifications using your Firebase project?
Please see the step-by-step tutorial here:
https://docs.appery.io/docs/pushnotif...


Upgrade to Android 8.0 breaks push

Posted: Sun Sep 30, 2018 3:21 pm
by Chris6743166

Thanks Serhii. That was the problem.

Chris


Upgrade to Android 8.0 breaks push

Posted: Wed Dec 18, 2019 7:05 am
by Rodrigo9910066

Hello,
I'm getting a similar error. I am using the PushPlugin 2.1.3 and set up Push Notifications using my Firebase project. However, I am getting this error when I try to export:

-----------------

/app/platforms/android/src/com/adobe/phonegap/push/FCMService.java:74: error: cannot access zzbej
String from = message.getFrom();
^
class file for com.google.android.gms.internal.zzbej not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /app/platforms/android/src/com/adobe/phonegap/push/PushPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.
/app/platforms/android/src/com/adobe/phonegap/push/FCMService.java:74: error: cannot access zzbej
String from = message.getFrom();
^
class file for com.google.android.gms.internal.zzbej not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /app/platforms/android/src/com/adobe/phonegap/push/PushPlugin.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

FAILURE: Build failed with an exception.

---------------------

Please help.

Thanks,
Rodrigo


Upgrade to Android 8.0 breaks push

Posted: Wed Dec 18, 2019 4:16 pm
by Serhii Kulibaba

What project type (JQM or Ionic) do you use here?
What libraries' version is selected?
Have you uploaded JSON config files of your Firebase account to Appery.io Push Notifications settings tab?


Upgrade to Android 8.0 breaks push

Posted: Thu Dec 19, 2019 1:45 am
by Rodrigo9910066

Hi Serhii,
It's an Ionic (1) app with v2.0 libraries.
Yes, I uploaded the JSON config files of my Firebase account to Appery.io.

Thanks,
Rodrigo


Upgrade to Android 8.0 breaks push

Posted: Thu Dec 19, 2019 5:32 pm
by Serhii Kulibaba

Please be sure you have selected the latest libraries version (the version 2.1 is available)

Also, please check the following Cordova plugins (all of them must be enabled)
PushPlugin 2.2.3
Notification 2.0.1
Device 2.0.2


Upgrade to Android 8.0 breaks push

Posted: Thu Dec 19, 2019 9:34 pm
by Rodrigo9910066

I changed to libraries v2.1 and activated Notification 2.0.1 and Device 2.0.2, and kept PushPlugin 2.2.3.

Now I get a different error:
"BUILD FAILED in 8s
Build step 'Execute shell' marked build as failure"

I have shared the app with support. Name of the app: TEST04

Thanks,
Rodrigo