So far we've done pretty good with our own message box. It's not quite like an iOS-native message box, but it's pretty close. In this case, though, we want to go all the way.
Working with the Message Box plugin is really easy. Let's go back to the share()
method in our Tweet View:
tweetView.share = function() { var actionSheet = window.plugins.actionSheet; actionSheet.create('Share', ['Twitter', 'Facebook', 'Email', 'Cancel'], function(buttonValue, buttonIndex) { if (buttonIndex==0) { PKUTIL.showURL("https://twitter.com/intent/tweet?text=" + encodeURIComponent(tweetView.theTweet.text) + "%20(via%20" + encodeURIComponent("@" + (tweetView.theTweet.from_user || tweetView.theTweet.user.screen_name)) + ")"); } if (buttonIndex==1) { var messageBox = window.plugins.messageBox; messageBox.alert('Not Implemented', 'Sorry, sharing with FaceBook is not yet implemented.', function(button) { console.log...