Page 1 of 1

Javascript Alert on iPhone Shows App Page Name above Alert

Posted: Fri Feb 07, 2014 12:19 am
by Christopher Herold

Using the following alert script
code
alert("Contact Previously Captured.\n\nYou will be forwarded to the record now.");
/code

On both the tester and the final App, the page name shows up at the top of the Alert. Why?

Image


Javascript Alert on iPhone Shows App Page Name above Alert

Posted: Fri Feb 07, 2014 12:22 am
by maxkatz

That's how the alert(..) API works. It's a standard browser API.


Javascript Alert on iPhone Shows App Page Name above Alert

Posted: Fri Feb 07, 2014 3:01 pm
by Christopher Herold

This doesn't show up on the Android App or tester. Also, I have not seen this on other iPhone Apps. Is this an artifact of the Appery system that we just have to live with?


Javascript Alert on iPhone Shows App Page Name above Alert

Posted: Fri Feb 07, 2014 5:26 pm
by Maryna Brodina

Javascript Alert on iPhone Shows App Page Name above Alert

Posted: Fri Feb 07, 2014 7:44 pm
by Christopher Herold

Awesome Maryna. The information on that page worked. Thanks!

code
navigator.notification.alert(
"This is my Alert text!",
callBackFunctionB, // Specify a function to be called
'Alert Title',
"OK"
);
function callBackFunctionB(){
console.log('ok');
}
/code