alis1200
Member
hi
i am trying to create chat app with sockets, and my app have one service that show notification when new text emmited in my server.
the service should be stable and start in boot, for create stable service i define two method:
1- add #StartCommandReturnValue: android.app.Service.START_STICKY in the #Region Service Attributes
2- add Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_NEVER in Sub Service_Create
both ways creating one notification that means service worked in background.
for chat app ungrateful that always show one notification.
i want to create the stable service without show any notifications.
if you suggest the 2nd way, say quite detail for me please.
excuse me for mistakes in my thread, my language not english.
best Regards
i am trying to create chat app with sockets, and my app have one service that show notification when new text emmited in my server.
the service should be stable and start in boot, for create stable service i define two method:
1- add #StartCommandReturnValue: android.app.Service.START_STICKY in the #Region Service Attributes
2- add Service.AutomaticForegroundMode = Service.AUTOMATIC_FOREGROUND_NEVER in Sub Service_Create
both ways creating one notification that means service worked in background.
for chat app ungrateful that always show one notification.
i want to create the stable service without show any notifications.
if you suggest the 2nd way, say quite detail for me please.
excuse me for mistakes in my thread, my language not english.
best Regards