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

Native Development

Reply
Developer
treike
Posts: 18
Registered: ‎09-26-2012
My Device: Developer
My Carrier: T-Mobile

BB 10 Advertising SDK: App crashes on startup when importing bb.cascades.advertisement

Hi everyone,

 

I am trying to include the BB Advertising SDK into my BB10 Cascades app.

As soon as I add this line:

 

import bb.cascades.advertisement 1.0

 to my qml file, the app doesn't start any longer (in the simulator, don't know about the device), it stays at the BB splashscreen. No errors in the logs.

 

Even though there is not yet a Banner-element added to the qml page.

 

I've added 

LIBS += -lbbcascadesadvertisement
and
<permission>read_device_identifying_information</permission> 

 according to the documentation to the .pro and .xml files.

 

When I remove that line in the qml again it's working.

 

Any ideas? Did anybody already use the BB Advertising SDK in his app?

Please use plain text.
Developer
treike
Posts: 18
Registered: ‎09-26-2012
My Device: Developer
My Carrier: T-Mobile

Re: BB 10 Advertising SDK: App crashes on startup when importing bb.cascades.advertisement

So, I know now that qmlDocument->hasErrors() equals true, but when I try to inspect these there is not really much information in the debug console, just a pointer to a QDeclerativeErrorPrivate object.

Are there any sample apps for the Advertising SDK? Even though the documentation states so, I could find anything in Cascades-Samples github.
Please use plain text.
Trusted Contributor
georg22
Posts: 245
Registered: ‎11-22-2011
My Device: Blackberry Playbook
My Carrier: vodafone

Re: BB 10 Advertising SDK: App crashes on startup when importing bb.cascades.advertisement

I just run into the same problem. Documentation seems to be wrong, link to example still broken. Do you have any new informations?

Please use plain text.
Developer
treike
Posts: 18
Registered: ‎09-26-2012
My Device: Developer
My Carrier: T-Mobile

Re: BB 10 Advertising SDK: App crashes on startup when importing bb.cascades.advertisement

Hi!

 

Yes I've got it running now.

 

I found a solution here:

http://supportforums.blackberry.com/t5/BlackBerry-Advertising-Service/Missing-app-files/td-p/1940193...

 

Seems the docs were a little outdated.

Please use plain text.