Home
Find the answer to your question
Public alerts work fine, but user alerts won't return any alert. I have subscribed to the events, however GetClientAlterts always returns an empty response:
{"Timestamp":"2009-05-21T23:38:50.273Z","Ack":"Success","Build":"e617__Bundled_8765421_R1","Version":"617","SessionData":"AQAAASFgd5wAAA1TSUQ9MTA4NDQ0NnxTVD0xfDF8TEFDVFY9MTI0Mjk0OTEzMDI3M3xFSFdNPTE2NjQ3MDg1MHxUSURYPTJ8TElVUD0xMjQyOTQ5MDg2NjYzfFBMSFM9W13bYHxMqAuBxBCdMi8b68Hs63lANQ=="}
1. Make sure you are subscribed to the alerts using GetNotificationPreferences.
Sample request to check event subscription <?xml version="1.0" encoding="utf-8"?>
Sample response shows that user is subscribed to ItemAddedToWatchList and ItemRemovedFromWatchList <?xml version="1.0" encoding="utf-8" ?>
<Timestamp>2009-06-11T22:27:00.356Z</Timestamp>
<Ack>Success</Ack>
<Version>619</Version>
<Build>e619__Bundled_9214082_R1</Build>
</GetNotificationPreferencesResponse>
|
2. Make sure that you have set DeviceType to ClientAlerts by making a call to GetNotificationPreferences. If not specified, this value defaults to Platform. A given eBay application (AppID) can support Client Alerts or Platform Notifications, but not both.
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8" ?> <GetNotificationPreferencesResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Build>e619__Bundled_9214082_R1</Build>
<ApplicationEnable>Enable</ApplicationEnable>
<AlertEmail>mailto://mymail@domain.com</AlertEmail>
<AlertEnable>Enable</AlertEnable>
<NotificationPayloadType>eBLSchemaSOAP</NotificationPayloadType>
<DeviceType>ClientAlerts</DeviceType>
<PayloadEncodingType>JSON</PayloadEncodingType>
<PayloadVersion>547</PayloadVersion>
</ApplicationDeliveryPreferences>
</GetNotificationPreferencesResponse>
|
3. Make sure that you have used the same credententials (AppID-DevID-CertID) to generate the ClientAlertsAuthToken and for setting the notification preferences.