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
Developer
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?

 

 

Developer
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

 

e.g.

 

BB10

 - 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!
Developer
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">

<author>Author</author>

<name>qclaims</name>

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

<rim:permissions>
  <rim:permit>read_device_identifying_information</rim:permit>
  <rim:permit>access_shared</rim:permit>
  <rim:permit>run_when_backgrounded</rim:permit>
  <rim:permit>post_notifications</rim:permit>
</rim:permissions>

<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>
<feature id="blackberry.identity"/>
<feature id="blackberry.identity.phone"/>
<feature id="blackberry.system"/>
<feature id="blackberry.ui.dialog"/>

</widget>

 Am I doing something wrong?

 

 

Developer
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.
Developer
Posts: 79
Registered: ‎09-17-2012
My Device: Torch 9800
My Carrier: DiGi

Re: BB10 Questions (config.xml problems)

Oh okay. Thanks.