Skip to content

Instantly share code, notes, and snippets.

@alivedise
Created October 8, 2013 14:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alivedise/6885769 to your computer and use it in GitHub Desktop.
Save alivedise/6885769 to your computer and use it in GitHub Desktop.
diff --git a/apps/sms/js/activity_handler.js b/apps/sms/js/activity_handler.js
index 2b0fb26..8597b30 100644
--- a/apps/sms/js/activity_handler.js
+++ b/apps/sms/js/activity_handler.js
@@ -68,6 +68,11 @@ var ActivityHandler = {
number: number,
contact: contact || null
});
+
+ // Simulate a late successful response.
+ setTimeout(function(){
+ activity.postResult('1111');
+ }, 5000);
});
},
share: function shareHandler(activity) {
diff --git a/apps/sms/manifest.webapp b/apps/sms/manifest.webapp
index b8721f7..592d4ac 100644
--- a/apps/sms/manifest.webapp
+++ b/apps/sms/manifest.webapp
@@ -48,7 +48,8 @@
"pattern":"[\\w\\s+#*().-]{0,50}"
}
},
- "disposition": "window"
+ "disposition": "window",
+ "returnValue": true
},
"share": {
"filters": {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment