cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UI5 Push Notification

b_punith
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

daniel_ruiz2
Active Contributor
0 Kudos

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

joao_sousa2
Active Contributor
0 Kudos

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 .

SergioG_TX
Active Contributor
0 Kudos

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!

Former Member
0 Kudos

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.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/001d12a4-8d95-3110-4f9c-ced3aa4b7...

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

CRVMANISH
Contributor
0 Kudos

Hello

How to use GCM with delta for ABAP backend for SAPUI5 apps?

Regards

Manish

former_member182372
Active Contributor
0 Kudos

+1 to WebSocket

or you can create an interval call and check a status change (like sicf service )

jQuery.sap.intervalCall = function intervalCall(iInterval, oObject, method, aParameters) {