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

Posts: 79
Registered: ‎09-17-2012
My Device: Torch 9800
My Carrier: DiGi

BB10 Questions

Hi all. I have some questions on BB10. Currenlty I'm trying to edit an app which is for OS6 and 7 but I come across lots of problems while trying to make it BB10 compatible. 


1. Push Notification Splat

In the current app, it uses blackberry.app.showBannerIndicator, blackberry.app.setHomeScreenIcon to show splat that there is push notification. But these two API are not supported in OS 10, how can I add splat for OS 10?


2. Incorrect Device Pin ID

Currently I'm using Z10 Alpha Dev B and Q10 Alpha Dev C for testing and when I try to get the id from the devices, the ID being displayed on the device is different from the id being retrieved using blackberry.identity.UUID. Is this normal?



Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone

Re: BB10 Questions

From the description of this issue it appears that your config.xml may be the cause of the problem


There is also the fact that BB10 uses new - incompatible - APIs which explains 1 + 2


Both push and device use new APIs (they really should homogeounise everything) - all I can do in the interim is guide you (I will be lodging a complaint over this issue, however)


Bascially you need to decide what device you're on then adapt the code accordingly





 - Do this

else PlayBook

 - Do that

else BB7

 - Adapt


Going to BB6 is dangerous (bad browser)


Completely ignore BB5 - whilst BB10 is the best browser available without question, 5 did not share that honour (it sux big - its unusable)

Click the like button if you find my posts useful!
Posts: 79
Registered: ‎09-17-2012
My Device: Torch 9800
My Carrier: DiGi

Re: BB10 Questions (config.xml problems)

[ Edited ]

Thanks for pointing that out. Never thought of checking there. 


Has anyone has this problems with their config.xml? There is problem using 

<rim: permit>run_when_backgrounded</rim: permit> and <rim: permit>post_notifications</rim: permit>. In Ripple Emulator it says rim: permit value is not recognised as being valid. 


<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" xmlns:rim="http://www.blackberry.com/ns/widgets" version="2.0.0" id="qClaims">



<description>Testing out mClaims on Q10</description>


<icon src="images/mclaims_icon.png"/>

<rim:splash src="loading_screen.png"/>

<content src="index.html"/>

<feature id="blackberry.ui.dialog"/>
<feature id="blackberry.app">
  <param name="orientation" value="portrait" />
<feature id="blackberry.identity"/>
<feature id="blackberry.identity.phone"/>
<feature id="blackberry.system"/>
<feature id="blackberry.ui.dialog"/>


 Am I doing something wrong?



Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: BB10 Questions (config.xml problems)

I've been told to ignore the error messages in Ripple.
Posts: 79
Registered: ‎09-17-2012
My Device: Torch 9800
My Carrier: DiGi

Re: BB10 Questions (config.xml problems)

Oh okay. Thanks.