on 05-10-2015 5:12 PM
Dear All,
I need to know how do we implement the Push notification in SAP UI5 application.
I am developing a custom FIORI like approval application and hence would like to know the scenario so that the application adhere with Push notification for the tasks created in backend.
It would be really great if someone provide a dummy example for better understanding.
Ragards,
Punith
hi Punith,
what you want to achieve has nothing to do with UI5, rather you have to get the ABAP to open the SSL socket with the APNS and post the message to the device.. the UI5 pretty much just need to send the deviceToken to the ABAP.
however, as you probably know, Push Notifications are very unreliable, it's pretty much fire-and-forget: meaning if the person has the device off when APNS sends it, they will never receive it again.
perhaps you should be looking into something like an email with a hyperlink to your custom namespace registration and some parameters to navigate to the correct view etc, this would probably be another approach you could look at.
hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you want a iOS-like push notification or a push notification that only works when the app is open in the browser? Completly different solution .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Punith,
if you are using an XS app, you could also use the new mail API to send an email to those recipients when the task is successful from your HANA environment.
this is a new feature on SP09.
hope this helps!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Punith,
I would recommend to have a look at Websockets to achieve this.
There are some great Tutorials here on SCN on how to use Websockets in UI5 and ABAP Push Channel in the Backend System for bidrectional communicaton.
Brad Pokroy summarised these in his Blog about realtime Notifications.
And here is an example using the websocket API provided by SAPUI5
OpenUI5 Developer: Simple chat server example using UI5 WebSocket
with best regards
Florian Hafner
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.