arleyandrada / PushClient

FREE and Open Source - Titanium PushClient Module
Other
44 stars 17 forks source link

Doesn't work with Android 8 #178

Open danny005 opened 6 years ago

danny005 commented 6 years ago

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 commented 6 years ago

Ok, figured it out. NotificationChannel is missing.

ErikDohmen commented 6 years ago

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

danny005 commented 6 years ago

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

JuananSpain commented 5 years ago

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.

ErikDohmen commented 5 years ago

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.

JuananSpain commented 5 years ago

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".

ErikDohmen commented 5 years ago

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

JuananSpain commented 5 years ago

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