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

BlackBerry Push Development

Reply
Contributor
kikyoung
Posts: 10
Registered: ‎03-15-2013
My Carrier: T-Mobile

How to get the Push Pin on Android runtime using Android API??

[ Edited ]

Hi.. 

 

Do you provide any Android API for Android runtime app to get Push PIN (=device PIN), and handling the push notification when a user clicks it on notification bar??

 

Thanks.

 

K

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Carrier: Bell

Re: How to get the Push Pin on Android runtime using Android API??

The device PIN is returned as a token in the GCM intent listener when registration has been completed. It can be retrieved from the intent using the following code:
final String token = intent.getStringExtra("registration_id");

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.