1
The customer has 7 stores and a headquarters. Someone in the matrix with decision power, will keep your mobile in hand with an app. When an employee of one of the stores needs to approve a higher discount than she can give, she then sends a request via this app, via REST
and on the other side the manager receives this request and based on the information that the service brings to him, will approve or not. How would I get this message to the person who has the app? In reality, message that I say is to notify the client who uses the App that has negotiation, he then should open the App, and at that time consume the REST and authorize or not. It’s not a chat.
you can use Signalr, this way the web application can send a message to mobile devices.
– Tobias Mesquita
I would make the service send a push to the device, and at that push you would send a payload with the information so that, when opening an Activity by the notification Pendingintent, you would consult in the service what you needed and make the authorization. When authorizing, it would send another push, but to the original Nder and it would release the sale.
– Grupo CDS Informática
The question is how the App user will know whether or not there is a message? In my Linkedin App or What’s App, for example, if I have 3 notifications, there is on top of the App icon an orange or green "ball" or any other color, with the amount of messages indicated. Signalr does this or what the CDS posted?
– pnet
I think I asked the question in the wrong way. I’ll redo it
– pnet
No problem. In this case you would have to treat the pending releases internally in the app, storing a list of pending releases. And in the case of push, you can show the notification the way you want in the app. This ball that appears in the app is native to the platform or Launcher that uses. It only counts pending notifications from the app, but doesn’t work on all Androids. This library can help you https://github.com/leolin310148/ShortcutBadger
– Grupo CDS Informática