我们在一个有角度的2 Web应用程序中实现了Sinch.
一切正常,除非我尝试使用sinch手机演示呼叫用户.
当应用程序在前台运行时,它将响铃并建立连接.
当应用程序在后台运行时,没有任何反应.
在角度应用程序中,onCallProgressing事件监视器未被触发,页面只是等待直到它吐出此错误消息:
似乎问题在于缺少jquery函数,因为我将项目重写为angular.
我想知道我可以用sinch API解决这个问题.
错误的完整堆栈跟踪如下:
Error: Error executing listener: onCallEnded
at SinchError (http://cdn.sinch.com/latest/sinch.min.js:4:4093) [<root>]
at g.<anonymous> (http://cdn.sinch.com/latest/sinch.min.js:4:18715) [<root>]
at Array.forEach (native) [<root>]
at g.execListener (http://cdn.sinch.com/latest/sinch.min.js:4:18650) [<root>]
at g.mxpHangup (http://cdn.sinch.com/latest/sinch.min.js:4:30318) [<root>]
at g.hangup (http://cdn.sinch.com/latest/sinch.min.js:5:12013) [<root>]
at g.<anonymous> (http://cdn.sinch.com/latest/sinch.min.js:5:4195) [<root>]
at Zone.runTask (http://localhost:4200/polyfills.bundle.js:6135:47) [<root> => <root>]
at ZoneTask.invoke (http://localhost:4200/polyfills.bundle.js:6329:33) [<root>]
at data.args.(anonymous function) (http://localhost:4200/polyfills.bundle.js:7360:25) [<root>]
Run Code Online (Sandbox Code Playgroud)
这是使用sinch管理调用的角度组件:
import {Component, AfterViewInit, ViewChild, OnInit, OnDestroy} from '@angular/core';
import {Router, …
Run Code Online (Sandbox Code Playgroud) 我正在构建一个Web门户,它必须在多个平台上实现功能.
其中一个平台是IOS Safari,这是我遇到的问题.
在我的代码中,我将两个浮动按钮对齐到div的底部,宽度和高度均为100%.
这一切都正常,我的按钮显示的颜色与页面底部的按钮完全相同.
然而,当我点击按钮时,移动safari中的紧凑视图切换到完整视图,我的按钮隐藏在底部导航栏后面!
当用户点击屏幕底部10%时,safari mobile显示扩展菜单是否正常?
我怎么能避免这个?
在这个gif中你可以看到IOS模拟器上的问题:
正如您所看到的,仅当按钮位于视图的较低10%时才会出现问题.这只是一个普通的按钮,我的代码被几个开发人员三重检查,并且没有错误.