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
Developer
n_jay144
Posts: 69
Registered: ‎09-05-2012
My Device: Z10 Red, PlayBook, DevAlpha C

Problem with Toast

I just tried to incorporate into my app a code found at:

https://github.com/blackberry/BB10-WebWorks-Samples/blob/master/Toast/js/app.js

without any changes of course.

 

Problem is:

-When Toast appear on the screen for the first time, all callbacks doesn't work.

-second time - all works fine.

 

Tested on DA-B and DA-C, OS 10.2.0.1445

BlackBerry Development Advisor
chadtatro
Posts: 620
Registered: ‎10-01-2009
My Device: Z10

Re: Problem with Toast

Hello,

 

I just tested it on 10.2.1 and it's working as expected.

Chad Tetreault | App Development Consultant | BlackBerry Developer Relations | developer.blackberry.com | @chadtatro
Developer
n_jay144
Posts: 69
Registered: ‎09-05-2012
My Device: Z10 Red, PlayBook, DevAlpha C

Re: Problem with Toast

Hi Chad,

I just upgraded my DA-B to 10.2.1.1057

 

Still doesn't work for me.

 

Tested with:

DA-B - v.10.2.1.1057

STL100-1 - v 10.1.0.4181

STL 100-2 - v 10.2.0.429

 

If you are able, please download and test one of my free apps:

http://appworld.blackberry.com/webstore/content/21792598/

 

Launch the app -> tap on one of wallpapers miniatures -> tap 'Set as Wallpaper'

App should back by itself to the wallpapers miniatures.

 

If not, touch 'Back' button - don't close the app- and repeat.

If I touch for the second time 'Set as Wallpaper' button, app works as intended, it means, back to the miniatures by itself. For the first time not.

 

App is made with BB-WW 1.0.x

 

BlackBerry Development Advisor
chadtatro
Posts: 620
Registered: ‎10-01-2009
My Device: Z10

Re: Problem with Toast

Hello,

 

I just tested it on my phone and after setting the wallpaper the 1st time I see Toast messages appear, but the page doesn't go 'back' by itself. After doing it a 2nd time, I see the Toasts and it does go back.

 

I'd recommend checking the Console in Web Inspector for any errors. From what I've tested here Toasts and their callbacks are working as expected.

 

 

Chad Tetreault | App Development Consultant | BlackBerry Developer Relations | developer.blackberry.com | @chadtatro