Quantcast
Viewing all articles
Browse latest Browse all 8501

Re: Kapsel Applications and Push Notification

I've made some progress but I still don't have push notification working for an iOS device yet. I resolved the error with the push notification plugin (mentioned above) by creating and installing a provisioning profile on my iPhone.

 

I also generated the necessary certificate on the Apple web site, exported it as .p12 certificate and imported it on the Push tab for the application in the management cockpit. When I send a push notification to the SMP server now I am getting back a 201 status, so that part is working fine.

 

But if I check the log file for the SMP server I see the following:

 

2015 02 28 12:16:52#0-700#WARN#com.sap.mobile.platform.server.foundation.security.filter.AuthenticationFilter##anonymous#http-bio-8080-exec-8####null#null#null#warn#Security#null#null#346b5a07-c3fe-448e-abdb-44a3ecb7ef02#null#1425176212144#null#com.sap.mobile.platform.server.foundation.security.filter.AuthenticationFilter:doFilter#No CSI context found in the authentication session. Performing the role check using HttpRequest#null#727#null#1425151012141000#null |

2015 02 28 12:16:52#0-700#WARN#com.sap.mobile.platform.server.notifications.apns.handler.APNSNotificationProcessor##anonymous#push-async-3####null#null#null#warn#Push#null#null#8c41d808-c80b-44fd-98f3-3bd141e0af26#null#1425176212161#null#com.sap.mobile.platform.server.notifications.apns.handler.APNSNotificationProcessor:extractPayload# Not a json object...#null#728#Notification#1425151012161000#null |

2015 02 28 12:16:53#0-700#ERROR#com.sap.mobile.platform.server.notifications.apns.handler.APNSNotificationStatusListener##anonymous#Thread-279####null#null#null#error#Push#null#null#62b3abb2-833e-4d43-84e0-1ff605231bea#null#1425176213065#null#com.sap.mobile.platform.server.notifications.apns.handler.APNSNotificationStatusListener:connectionClosed#Connection closed: 8#null#730#null#1425151013065000#null |

 

Here is the URL that I am using to send the push notification:

http://10.0.1.124:8080/restnotification/application/com.mycompany.push

 

And here is the payload:

{"alert":"New Vacation Approval Request", "data":"For (i826565) request (7)" }

 

I'm not sure if the documentation is out of date but in one section it says the following:

---

Procedure

From the cockpit, select >Applications > Push

Under Apple, select APNS endpoint. "None" is the default endpoint value for all the applications.

 

Note

The default URL is for a production environment; for a development and testing environment, change the URL to gateway.sandbox.push.apple.com.

(DF: There is no place to set the URL to the gateway in the management cockpit)

 

Select Sandbox to configure APNS in a development and testing environment, or Production to configure APNS in a production environment.

Click Browse to navigate to the certificate file.

Select the file, and click Open.

Enter a valid password.

----.

 

So I don't know if the problem is that the request is attempting to go to the production APNS URL instead of the sandbox URL (I generated a sandbox certificate), or if the problem is caused by the server thinking that the payload is not a json object.

 

Thanks,
Dave


Viewing all articles
Browse latest Browse all 8501

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>