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
Royster86
Posts: 83
Registered: ‎03-13-2012
My Carrier: Vodafone, Virgin

Dialog not being displayed after SDK/device OS update

Hi,

 

I'm having an issue with displaying a global modality dialog box not getting displayed since the SDK update - it also used to work in the old device OS but does not after the latest update.

 

I've used the following example to display the dialog in C++: 

 

https://developer.blackberry.com/cascades/documentation/ui/dialogs_toasts/sysdialogs.html

 

It seems to run through OK and no errors are generated - it successfully connects to the signals, then when I do dialog->show() nothing seems to happen - no errors or anything.

 

Has something changed in the latest release that could affect this? This is a vital feature of my app and it is currently useless :smileysad:

 

Many thanks!

Please use plain text.
Developer
Royster86
Posts: 83
Registered: ‎03-13-2012
My Carrier: Vodafone, Virgin

Re: Dialog not being displayed after SDK/device OS update

I have since discovered this issue is related to me setting the dialog to global modality, using the last line in this snippet:

dialog->setTitle(msgTitle);
dialog->setBody(msgSubject);
dialog->setModality(bb::system::smileyfrustrated:ystemUiModality::Global);

If I comment out the last line, the dialog is displayed as a normal in-app dialog.

Any reason why this is no longer working?

Thanks!
Please use plain text.
Developer
ekke
Posts: 1,317
Registered: ‎04-08-2010
My Carrier: Telekom.de, O2, Vodafone

Re: Dialog not being displayed after SDK/device OS update

I'm using all kind of dialogs heavy in my apps

but I never set to global modality - only application modality which is the default

 

all these dialogs are now working well - I had many issues with beta4 and gold

 

if global modality doesn't work you should open an issue

 

BTW: from my POV only in very rare cases you should use a global modality

users should work as smooth as possible to have a seamless-workFLOW-experience

so I decided for my apps only to use Application Modality

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
Royster86
Posts: 83
Registered: ‎03-13-2012
My Carrier: Vodafone, Virgin

Re: Dialog not being displayed after SDK/device OS update

Thanks - Yes I am aware that this is a very rare case - however the main purpose of my app requires that I have a global dialog (for the convenience of the user) - without it, in my specific scenario, users would be annoyed to have to flip back to my app to perform an action that needs to be performed in any screen, or app you are in.
Please use plain text.
Developer
Royster86
Posts: 83
Registered: ‎03-13-2012
My Carrier: Vodafone, Virgin

Re: Dialog not being displayed after SDK/device OS update

I have also just tried setting it to SystemUiModality::Application and it works, so this issue only seems to occur with the Global setting.

I'm assuming it is device OS rather than SDK related, as the old version that worked also now does not on the newer OS.
Please use plain text.
Developer
ekke
Posts: 1,317
Registered: ‎04-08-2010
My Carrier: Telekom.de, O2, Vodafone

Re: Dialog not being displayed after SDK/device OS update

perhaps a side-effect of fixing all the other bugs with SystemDialogs

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
Royster86
Posts: 83
Registered: ‎03-13-2012
My Carrier: Vodafone, Virgin

Re: Dialog not being displayed after SDK/device OS update

If anyone else is having issues with Global dialogs, please vote up the bug report, posted here:

https://www.blackberry.com/jira/browse/BBTEN-669
Please use plain text.