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
Highlighted
New Contributor
Posts: 8
Registered: ‎01-04-2013
My Device: Dev Alpha B
My Carrier: Airtel
Accepted Solution

blackberry.system.model return undefined

Hi

 I have an application based on sencha touch 2.1 and i add the webworks lib in it.

 

<script>
     if( navigator.userAgent.toLowerCase().indexOf("bb10") >= 0) {
        var path="local:///chrome/webworks.js";
        document.write( '<script src="'+path+'"></'+'script>' );
    }
    </script>

 

When I am trying to get the device model using blackberry.system.model returning undefined.

But other api like blackberry.system.softwareVersion, blackberry.system.name, blackberry.connection.type is working fine.

 

Thanks & Regards

Arun

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: blackberry.system.model return undefined

Which OS are you testing on? The model property is not supported in BlackBerry 10:

https://developer.blackberry.com/html5/apis/blackberry.system.html#.model

 

We have a community API for this here though:

https://github.com/blackberry/WebWorks-Community-APIs/tree/master/BB10/deviceInfo


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
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: blackberry.system.model return undefined

Erik

 

That extension needs updating




Click the like button if you find my posts useful!
Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: blackberry.system.model return undefined

It seems Anzor is still actively updating it. Can you elaborate on any specific issues still outstanding? Or do you mean for the Cordova system?


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
New Contributor
Posts: 8
Registered: ‎01-04-2013
My Device: Dev Alpha B
My Carrier: Airtel

Re: blackberry.system.model return undefined

Hi

Thanks to all, I am using the blackberry 10 and I think this api does not support blackberry 10.

 

Thanks & Regards

Arun