Christopher Herold
Posts: 0
Joined: Fri Jun 28, 2013 8:27 pm

Javascript Alert on iPhone Shows App Page Name above Alert

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Javascript Alert on iPhone Shows App Page Name above Alert

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

Christopher Herold
Posts: 0
Joined: Fri Jun 28, 2013 8:27 pm

Javascript Alert on iPhone Shows App Page Name above Alert

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?

Christopher Herold
Posts: 0
Joined: Fri Jun 28, 2013 8:27 pm

Javascript Alert on iPhone Shows App Page Name above Alert

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

Return to “Issues”