Page 2 of 2

make phone beep, vibrate on success

Posted: Mon Mar 11, 2013 11:30 am
by Michael4771079

thats correct Max


make phone beep, vibrate on success

Posted: Mon Mar 11, 2013 1:41 pm
by Maryna Brodina

Hello Michael! Could you clarify did you put code codenavigator.notification.beep(2);/code before alert's in JS (which is on Complete service event)


make phone beep, vibrate on success

Posted: Mon Mar 11, 2013 1:55 pm
by Michael4771079

Hi Marina,
I put the code above after the js alerts on success


make phone beep, vibrate on success

Posted: Mon Mar 11, 2013 9:15 pm
by Kateryna Grynko

Hi Michael,

Do you test this on device after APK/IPA build?
The code Marina adviced won't work on browser.


make phone beep, vibrate on success

Posted: Mon Mar 11, 2013 9:19 pm
by Michael4771079

tried IPA on iphone 4s ios 6.01

works on click by itself, but won't work on success or error after send_grid, on complete


make phone beep, vibrate on success

Posted: Mon Mar 11, 2013 9:51 pm
by Kateryna Grynko

On "Book" button, where you call Rest Service, there is a "Navigate To Page" action added.
Delete this "Navigate To Page" action.


make phone beep, vibrate on success

Posted: Mon Mar 11, 2013 11:10 pm
by Michael4771079

Thanks very much Katya, now works on success and error,

is it possible to navigate from the success or error alert?
this would make the whole event complete


make phone beep, vibrate on success

Posted: Tue Mar 12, 2013 3:31 pm
by Kateryna Grynko

Hi Michael,

You can navigate to other page using the following code:codenavigateTo('screenName');/code
Just paste this after the alert.


make phone beep, vibrate on success

Posted: Tue Mar 12, 2013 3:57 pm
by Michael4771079

Sorry Katya,
I wasn't clear,
when I get the success alert message I have to click ok, how can I navigate to another screen from the "ok" button in the alert


make phone beep, vibrate on success

Posted: Tue Mar 12, 2013 4:04 pm
by Kateryna Grynko

If you have the code with alert:codealert("Success");/code
add the following code after this line:codealert("Success");
navigateTo('screenName');/code
Then after the alert is closed you'll be navigated to another screen.