O'Reilly logo

PhoneGap 3.x Mobile Application Development HOTSHOT by Kerri Shotts

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Covering native, native-like, and non-native alerts

So far, our app has been pretty lax when it comes to deleting notes, that is, we do it immediately without any question. In some cases, this is expected—why would we tap Delete if we didn't mean to delete the note, right? You could argue that this is the expectation when using swipe-to-delete. But in each note edit view, the Delete button is pretty easy to tap by accident, and it would be frustrating to lose the note without ever being asked if that's really what we intended to do.

In this section, we'll examine the various mechanisms you can use to trigger alerts for the user. If you're familiar with JavaScript, you might be inclined to use alert and prompt, but these often include a very non-native ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required