PushClient icon indicating copy to clipboard operation
PushClient copied to clipboard

Doesn't work with Android 8

Open danny005 opened this issue 6 years ago • 8 comments

I have compiled this module with SDK 7.x and it works fine with Android 7 and lower.

Unfortunately there is a problem with Android 8. The app crashs if it is not running while receiving a push. And with the app in background, nothing happens (no visible push notification).

Has anyone managed to get this module working with Android 8?

danny005 avatar Apr 04 '18 17:04 danny005

Ok, figured it out. NotificationChannel is missing.

danny005 avatar Apr 06 '18 11:04 danny005

@danny005 Did you manage to get this working? Cause it keeps crashing on my side even though I've added NotificationChannels

ErikDohmen avatar Jul 31 '18 06:07 ErikDohmen

Nope. I had to compile with android:targetSdkVersion="25" as a workaround.

danny005 avatar Jul 31 '18 15:07 danny005

hello, I have activated the developer option "Show notifications channel notification", and I have found that in api 26 when a notification is received, this notification does not appear, and it shows me the following channel warning "failed to post notification on channel null" , other notification appcelerator modules have the same problem. When I put targetSdkVersion = "25" this does not happen.

JuananSpain avatar Sep 20 '18 19:09 JuananSpain

Anyone any progress? In november the switch needs to be made, but there's no way still to fix this for as far as I know.

ErikDohmen avatar Oct 08 '18 11:10 ErikDohmen

I finally gave up, I chose to use the libraries on Android: Ti.playservices (11.0.40) firebase.core firebase.cloudmessaging I have been able to compile with version 26. The parameters of the push when the app is in background were obtained as extras in the "onresume".

JuananSpain avatar Oct 08 '18 12:10 JuananSpain

@JuananSpain you only switched to the firebase.cloudmessaging for android and still use it for ios? Any guidelines to keep in mind when switching?

ErikDohmen avatar Oct 08 '18 12:10 ErikDohmen

Yes, for now I manage android and Ios separately, later I imagine that with time I will end up implementing it for ios too.

JuananSpain avatar Oct 08 '18 12:10 JuananSpain