cancel
Showing results for 
Search instead for 
Did you mean: 

Push message not delivered

0 Kudos

Hi all,

We are trying to send push notifications to APNS (Apple), but we don't receive any push notifications in the app.

After a lot of testing and verifying settings I don't know what to check anymore.

We use SMP 3.0.10.6 and have created an application configuration where APNS push is configured with the correct certificate.

To verify that the certificate and app are correct, we did a test on a backend that has a direct connection to the APNS server. The push messages are received successfully.

The app is registered on SMP, and the app has updated the registration with the APNS token. We have checked this with getting the registration info for this application connection.

Our request message to SMP:

Endpoint: https://[our SMP server]/restnotification/registration/11cedf5b-515a-49f1-9dd2-5525e6c3b391

{

"alert": "alertval",

"badge": 1,

"data": "testData",

"sound": "soundval"

}

The response from SMP:

{"status": {

   "value": "OK",

   "code": 0

}}

I have attached the logfile, and the last message says

##SMP: Push: APNS: submitting to Apple server at (ms): 1462179481833

and

##push_sending_notif |

It does not indicate that something goes wrong.

Can anybody say what the problem could be?

Kind regards,

Roel Traag

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member190010
Contributor
0 Kudos

Hi Traag,

Try sending push notifications using the following endpoint:

http[s]://<host:port>/restnotification/application/<applicationId>

Please include the response you get from the endpoint.

Regards,

Emanuel

0 Kudos

Hi Emanuel,

Thank you for your answer. When I use the endpoint you sugested, I get this answer:

{   "status":    {       "value": "OK",       "code": 0   },   "results": [  {       "status":      {         "value": "OK",         "code": 0       },

      "registrationId": "0bcbefb9-8236-429f-a41d-44ce2163f012"   }] }

I deleted first all registrations because otherwise the response would be to large. No push message is arrived yet 😞

In the log that i uploaded, there are no error messages.

But maybe there are log messages missing? Like confirmations that the message is delivered to APNS?

Regards, Roel

former_member190010
Contributor
0 Kudos

Hi Traag,

That means that the push notification was delivered for device id "0bcbefb9-8236-429f-a41d-44ce2163f012".

Check which device has that id and check if it have received any notifications.

Some tips you have to take in account:

1) If the SMP is behind a firewll there are some ports that must be open depending on the notification: APNS, GCM , ...

Is your smp behind a firewall?

2) When you run the application in a mobile device, you have to enable the push notification permission when asked.


Regards,

Emanuel

0 Kudos

Hi Emanuel,

The firewall ports are open, and push is enabled on the device. With a test tool we can send push notifications, that are received on the device. If we do the same thing using SMP, the notifications are still not delivered.

I've opened a incident at SAP support to get some help.

Regards,

Roel

former_member190010
Contributor
0 Kudos

Hi Traag,

Please keep us updated with the response from the support team.

In addition, read this information that may be valuable:

Choosing a SOCKS Proxy or Load Balancer for APNS Connections - Landscape Planning and Design - SAP L...

Regards,

Emanuel