ti.goosh icon indicating copy to clipboard operation
ti.goosh copied to clipboard

Android Oreo NotificationChannel support

Open m1ga opened this issue 6 years ago • 8 comments

In Ti-Slack someone mentioned, that there could be problems with push under Oreo: missing NotificationChannel. It is related to this SO thread: https://stackoverflow.com/questions/45711925/failed-to-post-notification-on-channel-null-target-api-is-26

Since I don't have an Oreo phone yet I can't prove this but it something that should be on the roadmap if the problem exists in Ti.Goosh too

m1ga avatar Dec 29 '17 11:12 m1ga

I have verified this, and it's indeed an issue. I've patched it for now, but the best thing would be to expose the full functionality of the channels.

caioiglesias avatar Feb 06 '18 15:02 caioiglesias

How did you fix?

kopiro avatar Feb 12 '18 08:02 kopiro

I'll submit a PR so you can check it out, but It's not the optimal solution for the use of channels.

caioiglesias avatar Feb 12 '18 08:02 caioiglesias

I added a (very :) ) little support for Oreo: https://github.com/caffeinalab/ti.goosh/pull/102

slash-84 avatar Feb 28 '18 19:02 slash-84

That's pretty much how I did it @slash-84

caioiglesias avatar Feb 28 '18 19:02 caioiglesias

Hello to all. I'm having trouble with notifications on any Android 8.0 device that I've run my app with the version 4.1.0 of Ti.Goosh. On previous versions of Android it works without problems. I imagine both for the problem mentioned above. Is version 4.1.0 compatible with Android 8 in some way?

sandrolain avatar May 11 '18 06:05 sandrolain

Hello I downloaded and created the build of the module with the integration for Oreo channels. But I still do not receive notifications. Should the channel also be specified when sending the server-side notification? I currently send notifications from node servers using node-gcm module, which has no references for the channel. https://github.com/ToothlessGear/node-gcm Thank you

sandrolain avatar May 17 '18 07:05 sandrolain

Any plans for a new release to fully support Notifications channels any time soon? Starting August new apps submitted to PlayStore have to target SDK 26, so the module won't be usable any more. Thank you for your work so far

psylus avatar Jul 12 '18 08:07 psylus