Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
Trusted Contributor
gazier20
Posts: 120
Registered: ‎10-25-2010
My Device: Not Specified
Accepted Solution

Avoid to ask for Blackberry PIN - How ?

Hi,

 

We are  going to launch our application to our private clients.

Our application pushes morning news.

 

If I send the link to the application to my client, they will click and install the application but I won't be able to send the morning pushes because I need to know their blackberry pin.

 

Do you have an idea to avoid to ask for their Blackberry pin ?

 

Thank you

Please use plain text.
Developer
abarber
Posts: 189
Registered: ‎08-13-2008
My Device: Not Specified

Re: Avoid to ask for Blackberry PIN - How ?

Hi

 

Can you not use the email address for the push instead of the BB PIN?

Are you using BIS or BES?

If they are BES users, there is a setting on the BES to add the PIN to the HTTP headers.

 

Have you checked the x-wap-profile http header? Not sure if it is in there or not?

 

profile header

 

 

 

 

Cheers

 

Andrew

Please use plain text.
Trusted Contributor
gazier20
Posts: 120
Registered: ‎10-25-2010
My Device: Not Specified

Re: Avoid to ask for Blackberry PIN - How ?

I'm using BIS and I don't know how to get their pin

Please use plain text.
Developer
abarber
Posts: 189
Registered: ‎08-13-2008
My Device: Not Specified

Re: Avoid to ask for Blackberry PIN - How ?

Hi

I've worked with BES mainly but why do you need their PIN?

 

Are you using websignals?

 

Check out this link - websignals

 

a) The subscriber registers for a given service by providing either their
mobile telephone number or e-mail address.
b) The Content Provider sends an SMS or e-mail to the subscribers
device, containing an opt-in link.
c) When the subscriber clicks the link, a message is sent to RIM
indicating that the user has opted to receive web signals from the
given Content Provider

d)The Content Provider can then push the initial icon (associated with a URL
and a notification like a ring or vibration) by sending a Web Service or HTTP
packet to the RIM web signal service.

 

 

Hope it helps

 

Cheers

 

Andrew

 

Please use plain text.
Trusted Contributor
gazier20
Posts: 120
Registered: ‎10-25-2010
My Device: Not Specified

Re: Avoid to ask for Blackberry PIN - How ?

I'm not using websignals. I'm pushing directly to my widget.

 

 Instead of
pushing to the browser like Web Signals does, the content is pushed to a custom
Java application (a push listener) that the content provider creates and distributes
to subscribers.

 

Any idea?

Please use plain text.
Developer
abarber
Posts: 189
Registered: ‎08-13-2008
My Device: Not Specified

Re: Avoid to ask for Blackberry PIN - How ?

Hi

 

I've never pushed outside of BES, but I would say you would still use the same process as websignals. i.e. registration using email or phone number

 

see below

 

You can configure the BlackBerry Push Service SDK for public mode or enterprise mode. In public mode, you can develop Push Initiators that use the BlackBerry® Push Service in the BlackBerry® Infrastructure to deliver content to any device user who subscribes to your service. You must register with Research In Motion to use the BlackBerry Push Service. In enterprise mode, you can develop Push Initiators that use the BlackBerry® Enterprise Server to deliver content only to users who are activated with the BlackBerry Enterprise Server.

 

Cheers

 

Andrew

Please use plain text.
Trusted Contributor
gazier20
Posts: 120
Registered: ‎10-25-2010
My Device: Not Specified

Re: Avoid to ask for Blackberry PIN - How ?

I know I know. I've already subscribed to the Blackberry Internet Services. It works perfectly but I always need to ask for a pin.

Please use plain text.
Developer
jmace
Posts: 482
Registered: ‎10-24-2008
My Device: 9300
My Carrier: AT&T

Re: Avoid to ask for Blackberry PIN - How ?

Couldn't you just grab the user's pin the first time they open your application and return it to your system via a webservice? 

 

alert("PIN: " + blackberry.identity.PIN);
_________________________________________
www.jasonmace.com/blackberry
Please use plain text.
Trusted Contributor
gazier20
Posts: 120
Registered: ‎10-25-2010
My Device: Not Specified

Re: Avoid to ask for Blackberry PIN - How ?

I just tryed and it doesn't work. Is it for widget (javascript) or only for java application ?

 

I'm creating a widget and I'm looking for something as you suggested.

 

Any other idea ?

Please use plain text.
Developer
jmace
Posts: 482
Registered: ‎10-24-2008
My Device: 9300
My Carrier: AT&T

Re: Avoid to ask for Blackberry PIN - How ?

It will work in a widget.

 

Did you add blackberry.identity to your config.xml? 

 

 

  <feature id="blackberry.identity" version="1.0.0"/> 

_________________________________________
www.jasonmace.com/blackberry
Please use plain text.