简体   繁体   中英

Is there any way to disable specific push notifications for an Android app?

I'm coding an Android app which will have a configuration settings screen. user might disable/enable specific push notifications - there will be several kinds of notifications coming from Amazon SNS Queue (some notifications will be from marketing department, other ones from human resources department, and so on)

Would it be possible to enable a push to receive notifications from human resources and disable from marketing? I mean... would there be any way that Android application may detect a 'specific' push from some department and may show it... and may detect a 'specific' push from another department and may not show it?

I mean an 'intelligence' contained in Android application code itself. Is there any way to accomplish that?

You can send keys/values with the Push message and when that is received, determine whether you want to send a notification.

A better way to do it is to save these settings on the server so that the server knows which notifications to send to which user/device-id

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM