programming4us
programming4us
MOBILE

BlackBerry Development : Pushing Data to External Users - Web Signals (part 6) - Building a Web Signal - Unsubscribing from a Subscription

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
5. Unsubscribing from a Subscription

There are two ways a subscriber can unsubscribe from a Web Signal. The subscription service can provide them with a link on a website that allows them to unsubscribe, or the service can provide them with a link to the RIM’s Web Signals site to see a list of all of their subscriptions and they can unsubscribe from there.

To give subscribers access to a link that allows them to see all of the Web Signals they’re subscribed to, use the following URL:

http://[push-domain]/mss/PM_sublist

As an example, for a North American subscriber, you would use

http://push.na.blackberry.com/mss/PM_subList

Because RIM uses information provided by the device browser to identify the mobile user, the URL must be accessed from the user’s BlackBerry device. Figure 8 shows the subscriptions list for the particular device.

Figure 8. Web Signals subscription list page


Note

The subscriber list URL is case sensitive. It must be entered exactly as shown to view the list of Web Signals to which the device is subscribed.


To unsubscribe a subscriber from a Web Signal, the push application must provide subscribers with the means to request to be removed from the subscriber list. After the push application receives the notification from the subscriber, it would submit the POST request to the RIM Push Infrastructure with the following URL:

https://[push-domain]/mss/PM_puidDereg?sid=[SID]&
pass=[SID-Password]&puids=[PUID-List]

More than one subscriber can be unsubscribed at a time, so it might be best to accept unsubscription requests from subscribers then submit the list to RIM in a batch periodically via the Deregistration request. Table 11 provides a description for each of the parameters for the unsubscribe URL.

Table 11. Web Signals Deregistration Request URL Parameters
ParameterDescription
Push-DomainThe regional domain that the push recipient resides in. Refer to Table 3 for the possible values for this parameter.
SIDThe Service ID (SID) assigned to this Web Signal by RIM.
SID PasswordThe password associated with the SID.
PUID-ListComma-separated list of subscriber PUIDs to which the content is delivered. The push application can unsubscribe all users by using ALL_USERS for this parameter.

For a North American subscriber to the mywebsignal Web Signal, the unsubscribe URL would be

https://push.na.blackberry.com/mss/PMpuidDereg
?sid=mywebsignal&pass=mypassword
&[email protected]

To unsubscribe a batch of subscribers, include each subscriber in a comma-separated list:

https://push.na.blackberry.com/mss/PM_puidDereg
?sid=mywebsignal&pass=mypassword
&[email protected],
[email protected],[email protected]

All subscribers can be unsubscribed using the following URL:

https://push.na.blackberry.com/mss/PM_puidDereg
?sid=mywebsignal&pass=mypassword
&puids=ALL_USERS

It is hard to think of a reason why a subscription service would want to unsubscribe all users unless the service were being shut down or was in beta mode and wanted to start over, but the capability is there.

If the RIM push infrastructure is able to successfully process an unsubscription request, the server responds with a JobID—an ID that uniquely identified the request. The job ID identifies the push request for debugging purposes or if the content provider needs to open an investigation with RIM. If the request is unsuccessful, the system returns rc=some-value, where some-value is one of the response codes listed in Table 12.

Table 12. Web Signals Deregistration Request Response Codes
Response CodeDescription
0400A SID was not provided in the request.
0401A SID Password was not provided in the request.
0402The request does not contain at least one PUID.
0403Authentication failed.
0404The specified SID does not have any subscribers, so there is nobody to unsubscribe.
0405The SID has expired or is not active.
1000The system is currently unavailable.
Other  
 
Top 10
Free Mobile And Desktop Apps For Accessing Restricted Websites
MASERATI QUATTROPORTE; DIESEL : Lure of Italian limos
TOYOTA CAMRY 2; 2.5 : Camry now more comely
KIA SORENTO 2.2CRDi : Fuel-sipping slugger
How To Setup, Password Protect & Encrypt Wireless Internet Connection
Emulate And Run iPad Apps On Windows, Mac OS X & Linux With iPadian
Backup & Restore Game Progress From Any Game With SaveGameProgress
Generate A Facebook Timeline Cover Using A Free App
New App for Women ‘Remix’ Offers Fashion Advice & Style Tips
SG50 Ferrari F12berlinetta : Prancing Horse for Lion City's 50th
- Messages forwarded by Outlook rule go nowhere
- Create and Deploy Windows 7 Image
- How do I check to see if my exchange 2003 is an open relay? (not using a open relay tester tool online, but on the console)
- Creating and using an unencrypted cookie in ASP.NET
- Directories
- Poor Performance on Sharepoint 2010 Server
- SBS 2008 ~ The e-mail alias already exists...
- Public to Private IP - DNS Changes
- Send Email from Winform application
- How to create a .mdb file from ms sql server database.......
programming4us programming4us
programming4us
 
 
programming4us