Activate/Desactivate notifications in an app having different notifications type -


i looking @ different forums , tutorials did not find cover want do. @ moment notifications working fine trying give options user receive them or not.

my server sending 3 kind of different notification, messages:

  1. you have new message
  2. a new user connected
  3. a user close you

i have option menu giving user option choose notifications wants receive. can select combination wants.

the problem have not know how allow app display message 1 , 2, not 3, if user choice. far solution have either showing 1, 2 , 3) or showing nothing. have nothing in middle.

did came across , how did solved it? ps: apple push notifications

thanks

find solution, combine silent notification local notification

1) receive silent notification

2) treatment base on notification

3) send local notification (or not) create desired effect


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -