{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/android-runtime/issues/319","labels_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/319/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/319/comments","events_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/319/events","html_url":"https://github.com/NativeScript/android-runtime/issues/319","id":123579328,"number":319,"title":"Callback is called, but promise not returned on subsequent calls","user":{"login":"sitefinitysteve","id":1542376,"avatar_url":"https://avatars.githubusercontent.com/u/1542376?v=3","gravatar_id":"","url":"https://api.github.com/users/sitefinitysteve","html_url":"https://github.com/sitefinitysteve","followers_url":"https://api.github.com/users/sitefinitysteve/followers","following_url":"https://api.github.com/users/sitefinitysteve/following{/other_user}","gists_url":"https://api.github.com/users/sitefinitysteve/gists{/gist_id}","starred_url":"https://api.github.com/users/sitefinitysteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitefinitysteve/subscriptions","organizations_url":"https://api.github.com/users/sitefinitysteve/orgs","repos_url":"https://api.github.com/users/sitefinitysteve/repos","events_url":"https://api.github.com/users/sitefinitysteve/events{/privacy}","received_events_url":"https://api.github.com/users/sitefinitysteve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-23T00:08:11Z","updated_at":"2015-12-23T02:35:28Z","closed_at":null,"body":"Plugin: https://github.com/sitefinitysteve/nativescript-snackbar\r\n\r\n```\r\nvar snackbar = require(\"nativescript-snackbar\");\r\n\r\n   snackbar.simple(\"Sup\").then(function(args){\r\n       viewModel.message = \"Dismiss Sup: \" + args.reason + \" \" + new Date().getMilliseconds();\r\n       \r\n       snackbar.simple(\"Brad\").then(function(args){\r\n            viewModel.message = \"Dismiss Brad: \" + args.reason + \" \" + new Date().getMilliseconds();       \r\n       });       \r\n   });\r\n```\r\nVideo: http://www.screencast.com/t/qKY10wnaPbJD\r\n\r\nSo console debug shows \"onDismissed\" in the simple snack is called every time, but the resolve doesn't return back to the calling javascript past the first time.\r\n\r\nExample:\r\n```\r\n   snackbar.simple(\"Sup\").then(function(args){\r\n       viewModel.message = \"Dismiss Sup\";\r\n       \r\n       snackbar.simple(\"Brad\").then(function(args){\r\n            viewModel.message = \"Dismiss Brad\";       \r\n       });       \r\n   });\r\n```\r\nExpected:\r\n- Click\r\n- Dismiss Sup\r\n- Dismiss Brad\r\n- Click again\r\n- Dismiss Sup\r\n- Dismiss Brad\r\n\r\nActual:\r\n- Click\r\n- Dismiss Sup\r\n- Click again\r\n- Dismiss Sup\r\n"},"comment":{"url":"https://api.github.com/repos/NativeScript/android-runtime/issues/comments/166790144","html_url":"https://github.com/NativeScript/android-runtime/issues/319#issuecomment-166790144","issue_url":"https://api.github.com/repos/NativeScript/android-runtime/issues/319","id":166790144,"user":{"login":"sitefinitysteve","id":1542376,"avatar_url":"https://avatars.githubusercontent.com/u/1542376?v=3","gravatar_id":"","url":"https://api.github.com/users/sitefinitysteve","html_url":"https://github.com/sitefinitysteve","followers_url":"https://api.github.com/users/sitefinitysteve/followers","following_url":"https://api.github.com/users/sitefinitysteve/following{/other_user}","gists_url":"https://api.github.com/users/sitefinitysteve/gists{/gist_id}","starred_url":"https://api.github.com/users/sitefinitysteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sitefinitysteve/subscriptions","organizations_url":"https://api.github.com/users/sitefinitysteve/orgs","repos_url":"https://api.github.com/users/sitefinitysteve/repos","events_url":"https://api.github.com/users/sitefinitysteve/events{/privacy}","received_events_url":"https://api.github.com/users/sitefinitysteve/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T02:35:28Z","updated_at":"2015-12-23T02:35:28Z","body":"Sorry gotta type this on a stupid phone :) if i remove the native callback and replace with a simple timeout to resolve it works fine everytime. \r\n\r\n When i use the native callback i can see all the code triggered in the plugin (like the console.log above) , but i never get back to the calling code.  \r\n"}}