我正在尝试监控Android上的菜单按钮(4.4.2 - 三星S3),但是Ionic event(也没有底层的Cordova event)没有触发:
$ionicPlatform.on("menubutton", function () {
// do our stuff here (never gets called)
});
有没有人能够做到这一点?运行Ionic平台1.0.0,所有其他事件按预期启动 .
我正在尝试监控Android上的菜单按钮(4.4.2 - 三星S3),但是Ionic event(也没有底层的Cordova event)没有触发:
$ionicPlatform.on("menubutton", function () {
// do our stuff here (never gets called)
});
有没有人能够做到这一点?运行Ionic平台1.0.0,所有其他事件按预期启动 .
2 回答
试试这个:在.run()中
然后在控制器中:
另一种做事方式:
文档缺少一条线 .
https://issues.apache.org/jira/browse/CB-9949#comment-14989073