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
Highlighted
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

AppWorld: application icon missing on confirmation step

[ Edited ]

Hi!

 

I've uploaded my application to AppWorld, but on confirmation screen the Icon was missing. It just said: "Icon: ...empty space...". Did not taken the screenshot to show. Smiley Sad

 

Can anyone please confirm if the icon should be there? It should be fetched from .bar, right?

 

I see the icon in Release buid (unsigned one) on the device. My app uses Cascades but I was using Qt Creator, so I packaged the BAR file by hand and now worrying if I did everything right.

 

Here's my packaging script in case anyone needs it:

 

#!/bin/sh
source /Applications/bbndk/bbndk-env.sh
sed -e "s,%SRC_DIR%,../MyApplication,g" bar-descriptor.xml > ../MyApplication-build-BB10Device-Release/bar-descriptor.xml
cd ../MyApplication-build-BB10Device-Release/
blackberry-nativepackager -package MyApplication.bar -buildIdFile ../MyApplication/buildId.txt -sign -storepass mystorepassword bar-descriptor.xml

 upd: I've tried to upload the signed BAR file too and it also has the icon on device.

 


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: AppWorld: application icon missing on confirmation step

The icon does not come from the .bar file. You have to make a higher resolution one and upload it separately.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: AppWorld: application icon missing on confirmation step

[ Edited ]

I did upload 480x480 icon and 1920x1186 banner. Is there other ones?


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: AppWorld: application icon missing on confirmation step

I've misunderstood what you were describing then. I suppose maybe they've added a check at upload time to see whether you have an icon configured properly inside? I don't know... can you screenshot the problem for us, or copy/paste the exact error message and precisely where you saw this?

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: AppWorld: application icon missing on confirmation step

I can't return to that screen to take a screenshot. Will be submitting another app in nearest few days and will take a screenshot. Thanks for trying to help!

Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 67
Registered: ‎09-01-2012
My Device: Dev Alpha
My Carrier: Bell

Re: AppWorld: application icon missing on confirmation step

I just submitted my app and it was the same thing.

However when I look in my products page, the icon and the feature image is there...

 

I'm sure it'll be okay.

Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: AppWorld: application icon missing on confirmation step

[ Edited ]

If you guys check your .bar files, is the app icon in the app/public folder, or in app/native? It should be in public if it's been marked public in the bar-descriptor file, like this (with appropriate names): <asset path="app_icon.png" public="true">icon.png</asset>

Maybe they added a check for this but haven't got it all working properly yet.

 

Note: I'm not saying that I know for a fact it has to be like this, but I noticed this change back with beta 3 or so, and I just assume it's something intentional and desirable so that icons for all apps are readable by other apps. If it's in app/native as it used to be, only the OS and certain system apps could see it.


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: AppWorld: application icon missing on confirmation step

[ Edited ]

Thanks! I've checked and it's in app/native folder. But I'm using Qt Creator and the icon is specified by <icon> tag in bar-descriptor.xml. Do you know by any chance how to switch the icon folder in Qt Creator (or which adjustments  should I make in this .xml)? My bar-descriptor.xml looks like this:

 

 

<?xml version='1.0' encoding='utf-8' standalone='no'?>
<qnx xmlns="http://www.qnx.com/schemas/application/1.0">
	<id>my.domain.MyApp</id>
	<name>MyApp</name>
    <versionNumber>1.0.0</versionNumber>
	<description>MyApp Description</description>
    <initialWindow>
        <systemChrome>none</systemChrome>
        <transparent>false</transparent>
		<autoOrients>false</autoOrients>
		<aspectRatio>portrait</aspectRatio>
	</initialWindow>
    <env value="app/native/imports" var="QML_IMPORT_PATH"/>
    <env value="app/native/plugins:/usr/lib/qt4/plugins" var="QT_PLUGIN_PATH"/>
    <env value="app/native/lib:/usr/lib/qt4/lib/" var="LD_LIBRARY_PATH"/>
    <action system="true">run_native</action>
	<asset path="MyApp" type="Qnx/Elf" entry="true">MyApp</asset>
    <asset path="%SRC_DIR%/qml">qml</asset>
	<asset path="%SRC_DIR%/assets">assets</asset>
    <icon>
		<image>assets/images/icons/applicationIcon114.png</image>
    </icon>
	<splashScreens>
	   <image>assets/images/splash/portrait768x1280.jpg</image>
	   <image>assets/images/splash/portrait720x1280.jpg</image>
	</splashScreens>
</qnx>

 


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: AppWorld: application icon missing on confirmation step

I don't know anything about QtCreator, sorry. Even my idea that it's because of the folder is pure guesswork, so don't spend too much time on it...

What about just adding another icon file yourself? You should be able to ignore whatever QtCreator is doing (unless it rewrites your bar-descriptor manually) and add the new file yourself. Maybe this would work:

<asset path="assets/images/icons/applicationIcon114.png" public="true">icon.png</asset>

That, I believe, would copy the specified file to app/public/icon.png. Then I think you'd adjust the above line to <icon><image>icon.png</image></icon>. I'm fuzzy on this though, so don't assume I haven't overlooked something, or that this will work at all.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!