Posts

Post not yet marked as solved
3 Replies
1.5k Views
Hi, i work on some application which should send data between devices, I implement that in Network Framwork instead of socket.Everything works like it should, except one situation which i do not understand correctly.When i open NWConnection to some endpoint, i can observe states - all works fine from setting uoo to ready.I can send data between, without problems.Now i want to solve in nice way situation when one side of connection is closed - manually or by an issue.I do close connection by cancelCurrentEndpoint - there are no other endpoints on that connection - so as i expect State should change to cancelled, but it goes to failed on the device i close it with information that network is down.I don't undersand why nothing happens on the endpoint this connection - no StateUpdateWhen i use cancel() method, it works like expected - on my side of connection statusChange to cancelled.I can make some code to send to all devices information about closing connection, but it is not solution i want.Have someone got that issue and explain how those cancel - cancelEndPoint method works, on Apple Documentation there is nothing to read.
Posted
by HPmax.
Last updated
.
Post not yet marked as solved
1 Replies
657 Views
I did create simple CloudKit JS app too access cloudKit records. Everything work fine for few months, but last week i can not uthanticate anymore. I get Authentication Error, on console i can see more details. It says:Refused to connect to https://setup.apple-cloudkit.com/.... because it does not appear in the connect-src directive of the Content Security Policy.I have tried on different machines, browsers, clearing cache and so on. No success. I can sign in to my developer sites, without any problems.Funny thing is that the same account is keeping me connected to cloudKit on iOS device safari - it works there so far.Have no idea where to look for reason. Have anyone same issue ?
Posted
by HPmax.
Last updated
.
Post not yet marked as solved
1 Replies
403 Views
Hi,I did noticed today some new functionality of command print().When i used as a message text: "ERROR: ......" it shows me as an error line i swift compilator ?Just wanted to printout comment on console about the wrong action in my app.Is it something new, can not find any information about that it should act like this.line 1 : print("error: just for test")line 2 :print("ERROR Article is not correct!!!")line 3 :print("ERROR: Article already registered - can not register twice!!!")line 4 :print("ERROR Article has been registered already")line 3 act as compilator error.
Posted
by HPmax.
Last updated
.