09-05-2013 07:54 AM
I have registered an app for the system share menu of the BlackBerry 10 browser. However I noticed that the icon size is wrong: It vertically fills up the whole line in the list with no empty space to the sides. I noticed the same problem for some other apps I have installed, e.g. Blaq has the same issue. This only seems to affect the share menu of the browser. It doesn't occur if you use the share menu from the Pictures app where the icon is always displayed with space to the sides.
Today I read that it's possible to add a second app icon that is only 86x86 px in size:
This seemed to solve the display issue. The app icon was now correctly displayed in the browser's share menu. However this didn't persist for long: After a while I noticed that sometimes the 86x86 px app icon is used and sometimes the 114x114 px app icon.
I tried the same using a native Casacdes app and could reproduce the same behavior there. I also noticed that the 86x86 px icon is actually meant to be used on the PlayBook and not on BlackBerry 10.
For the Cascades app I found a solution. It's possible to add a 86x86 px icon directly to the invocation target used by the browser:
<invoke-target id="my.native.app.id.openurl"> <invoke-target-name>My App</invoke-target-name> <icon><image>logo-86.png</image></icon> <invoke-target-type>application</invoke-target-typ
e> <filter> <action>bb.action.SHARE</action> <mime-type>*</mime-type> <property var="uris" value="http://,https://"/> </filter> </invoke-target>
However the same doesn't work for my WebWorks app:
<rim:invoke-target id="my.webworks.app.id.openurl"> <invoke-target-name>My App</invoke-target-name> <icon><image>images/app_icon-86.png</image></icon> <type>APPLICATION</type> <filter> <action>bb.action.SHARE</action> <mime-type>*</mime-type> <property var="uris" value="http://,https://" /> </filter> </rim:invoke-target>
How can I add a specific icon to a WebWorks invoke-target, so that it is always correctly displayed in the browser's share menu?