Post

Replies

Boosts

Views

Activity

Incoming call notifications problems
Good day We developed a simple swift code to make the device ringing when a certain type of notifications arrives from our backend. This is the code: let phoneNumber = CXHandle(type: .generic, value: (self.userInfoForPluginCall!["data"] as! [String:Any]) ["caller"] as! String) callUpdate.remoteHandle = phoneNumber let configuration = CXProviderConfiguration(localizedName: "Trec Conf") configuration.maximumCallGroups = 1 configuration.maximumCallsPerCallGroup = 1 configuration.supportsVideo = false configuration.supportedHandleTypes = [.generic] configuration.iconTemplateImageData = UIImage(named: "callkit-icon")?.pngData() let callProvider = CXProvider(configuration: configuration) callProvider.setDelegate(self, queue: nil) callProvider.reportNewIncomingCall(with: callUUID!, update: callUpdate, completion: {error in}) We are noticing some problems on the call screen: on certain devices (iOS 18.4RC) the normal call screen appears and the user can answer or decline the call, on other devices (iOS 18.3, especially with dynamic island) only a phone icon appears in the upper right corner and no possibility to answer or deny call. Any idea on why we are encountering that behavior? Thanks
0
0
67
2w
iPhone and iPad ui design
Hi I'm here because i need a help to understand how to design ui for both iPhone and iPad. I've designed this simple ui: var body: some View {                  VStack {                              // Vstack with logo and go to site button             VStack {                                  Image("Logo")                     .resizable()                     .frame(minWidth: 250, idealWidth: 250, maxWidth: 250, minHeight: 100, idealHeight: 100, maxHeight: 100, alignment: /*@START_MENU_TOKEN@*/.center/*@END_MENU_TOKEN@*/)                     .offset(y: 50)                                  Button("Vai al sito") {                     goToHomeSite()                 }                 .font(.title)                 .frame(width: 250.0, height: 40.0)                 .foregroundColor(Color("SiteGreen"))                 .background(Color.white)                 .clipShape(Capsule())                 .offset(y: 60)                              }             .frame(maxWidth: .infinity, maxHeight: 225, alignment: .top)             .background(Color("SiteGreen"))             .ignoresSafeArea() } } In iPhone it works fine but in iPad the image and the button remain of the same width. I obviously understand why (I set ideal width and ideal height) but I can't understand how to obtain my result in other ways. Could you please give me some suggestions? Thanks
2
0
438
Mar ’22
Change view on completion
Hi I have developed a view that manages three subviews: login, register and confirm code. Now I'm developing a separate view that manages all the subviews after login successful. The idea is that after login with success the new is pushed and the old is popped. I've tried with NavigationLink in the login subview but it seems that it doesn't like the isActive change in the rest response (ie in the completion). Here is the code: NavigationLink(             destination: LoggedView(),             isActive: self.$pushToLogged,             label: {                              }         ).hidden() func login() { let lF = LoginServiceFacade()             lF.loginMember(mobileNumber: mobileNumber, password: password, completion: {                 (response: LoginResponse?, error: ConnectionErrors?) in self.pushToLogged = true }) } Any idea? Thanks in advance
0
0
295
Aug ’20
Tls handshake problem with aws certificate
HiI'm using an iphone x with ios 13.1 to test my app but when I try to call my backend deployed on aws and covered by an aws certificate the app throws this error:2019-10-01 15:29:04.099537+0200 CopApp[2120:565037] [] tcp_input [C2.1:3] flags=[R.] seq=1248880982, ack=548775464, win=28408 state=ESTABLISHED rcv_nxt=1248880982, snd_una=5487754642019-10-01 15:29:04.104758+0200 CopApp[2120:565037] Connection 2: received failure notification2019-10-01 15:29:04.104938+0200 CopApp[2120:565037] Connection 2: received ECONNRESET with incomplete TLS handshake - generating errSSLClosedNoNotify2019-10-01 15:29:04.105080+0200 CopApp[2120:565037] Connection 2: failed to connect 3:-9816, reason -12019-10-01 15:29:04.105289+0200 CopApp[2120:565037] Connection 2: encountered error(3:-9816)I don't know why this error is returned because I read all new apple's certificates policies but it seems that aws certificates completely fullfill them.Can you help me?Thanks
3
0
7.8k
Oct ’19