0

我在尝试使用确认通知功能时遇到问题。它在开发环境中工作正常,但在控制面板或应用程序中上传和测试时它不起作用。回调返回一个空数据对象和 err=true,其中在开发环境中数据对象具有可用于操作的选定按钮键。这是区分确认按钮和取消按钮被按下的唯一方法(用于确认通知)。

确认通知文档在这里: https ://github.com/BuildFire/sdk/wiki/How-to-use-Notifications

成功的控制台输出(在 dev/localhost 中): Success

控制面板(和设备)中相同代码的控制台输出: 失败

4

1 回答 1

0

这是一个正在处理的已知错误。这是一个丑陋的解决方法。

buildfire.notifications.confirm({message:"Are you sure you want to delete this epic?",confirmButton:{type:"danger"}},(e,r)=>{
                if(e==1 || r.selectedButton.key == "confirm" ){ // confirmed }};
于 2020-12-23T18:56:23.673 回答