Future Lightning cables may create a water-tight seal when connected to the iPhone
Apple is continuing to find ways to make its devices more water resistant by protecting its ports from liquids, with the iPhone producer considering the possibility of adding elements to Lightning or similar connectors to create a "liquid-tight seal" when connected.

The Lightning port and speaker holes of the iPhone XR
Apple has worked to make its flagship devices, the iPhone, as resistant to water as possible, increasing the protection over time to make the sudden immersion of the smartphone into water less harmful to the device. There is still room for improvement, including the possibility of adding extra elements to the relatively large gap created by the Lightning port to prevent any liquid ingress, which could potentially harm the internal components over time.
Granted on Tuesday and published by the U.S. Patent and Trademark Office, Apple's patent for "Sealed electronic connectors for electronic devices" attempts to solve just such a problem, by coming up with a variety of different ways a connector can be modified to protect against the elements once inserted into the port.
It is worth noting that this is not an entirely new area for Apple. In June, the company was granted an extremely similar patent for "Sealed accessories for electronic devices," and while the text is similar in terms of the discussed concepts, the accompanying diagrams from that patent are largely similar to the versions shown in the newly-granted version.

Diagram explaining the use of extended compressible sheathing to create a seal
The most recent patent explains that a plug connector entering a port is not necessarily capable of holding back water, but the addition of elements on the plug or within the device itself could create a liquid-tight seal when the two are mated.
In one scenario, the sheathing around the connector extends away from the outer shell. When inserted into a port, this sheathe could be pressed down by the edges of the port's opening, creating the seal, while a retention mechanism holds the plug in place until it is released by the user.
This extra material cold be as little as 0.25 millimeters and as much as 2 millimeters away from the main body in this extension, and is produced from a silicone-like material. The deformable seal could also be produced using an elastomeric material, with a hardness between 5 and 80 Shore A, with a similar extension distance to the silicone version.
A key addition in this patent compared with the earlier version is the suggestion of an external covering to protect the port itself when there isn't a connector inserted.

Diagram showing the use of a covering to protect the port when unused, and a line feed for a vacuum pump
To help ensure a tight seal, the patent suggests the use of a port that has a smaller aperture than the tab of the connector, one which expands as the connector is wedged into place. Such a deformable peripheral seal would help prevent the electrical contacts within the port from coming into contact with liquids, and would spring back into place when the port and connector are disconnected.
Similar to last time, the resulting seals can be improved upon by the use of a small vacuum pump extracting air from the cavity inside the port once the connector is inserted. By creating a vacuum, this can suck the connector into the port, applying more pressure to deformable seals and further reducing the possibility of ingress.
Users would theoretically trigger a release valve to break the vacuum if they wish to disconnect the two components.
The patent goes on to suggest that the pump could be motor controlled, though in order to save space and cost, it may not necessarily be a motor just used for creating a vacuum. It is suggested a motor could switch between being used for pumping and to power haptic feedback by vibrating, or even to drive a speaker.
Apple applies for numerous patents on a weekly basis, covering a wide variety of areas. While the existence of a patent or application isn't a guarantee that it will make an appearance in a future consumer device, it does at least indicate areas of interest for the iPhone producer.
Aside from the similar earlier patent, Apple has also looked into the possibility of using self-healing elastomers to protect connectors and ports since late 2015. Apple has also suggested the use of a port that uses a mesh "umbrella" to deflect liquids from an audio channel, effectively helping prevent water from interfering with speakers.

The Lightning port and speaker holes of the iPhone XR
Apple has worked to make its flagship devices, the iPhone, as resistant to water as possible, increasing the protection over time to make the sudden immersion of the smartphone into water less harmful to the device. There is still room for improvement, including the possibility of adding extra elements to the relatively large gap created by the Lightning port to prevent any liquid ingress, which could potentially harm the internal components over time.
Granted on Tuesday and published by the U.S. Patent and Trademark Office, Apple's patent for "Sealed electronic connectors for electronic devices" attempts to solve just such a problem, by coming up with a variety of different ways a connector can be modified to protect against the elements once inserted into the port.
It is worth noting that this is not an entirely new area for Apple. In June, the company was granted an extremely similar patent for "Sealed accessories for electronic devices," and while the text is similar in terms of the discussed concepts, the accompanying diagrams from that patent are largely similar to the versions shown in the newly-granted version.

Diagram explaining the use of extended compressible sheathing to create a seal
The most recent patent explains that a plug connector entering a port is not necessarily capable of holding back water, but the addition of elements on the plug or within the device itself could create a liquid-tight seal when the two are mated.
In one scenario, the sheathing around the connector extends away from the outer shell. When inserted into a port, this sheathe could be pressed down by the edges of the port's opening, creating the seal, while a retention mechanism holds the plug in place until it is released by the user.
This extra material cold be as little as 0.25 millimeters and as much as 2 millimeters away from the main body in this extension, and is produced from a silicone-like material. The deformable seal could also be produced using an elastomeric material, with a hardness between 5 and 80 Shore A, with a similar extension distance to the silicone version.
A key addition in this patent compared with the earlier version is the suggestion of an external covering to protect the port itself when there isn't a connector inserted.

Diagram showing the use of a covering to protect the port when unused, and a line feed for a vacuum pump
To help ensure a tight seal, the patent suggests the use of a port that has a smaller aperture than the tab of the connector, one which expands as the connector is wedged into place. Such a deformable peripheral seal would help prevent the electrical contacts within the port from coming into contact with liquids, and would spring back into place when the port and connector are disconnected.
Similar to last time, the resulting seals can be improved upon by the use of a small vacuum pump extracting air from the cavity inside the port once the connector is inserted. By creating a vacuum, this can suck the connector into the port, applying more pressure to deformable seals and further reducing the possibility of ingress.
Users would theoretically trigger a release valve to break the vacuum if they wish to disconnect the two components.
The patent goes on to suggest that the pump could be motor controlled, though in order to save space and cost, it may not necessarily be a motor just used for creating a vacuum. It is suggested a motor could switch between being used for pumping and to power haptic feedback by vibrating, or even to drive a speaker.
Apple applies for numerous patents on a weekly basis, covering a wide variety of areas. While the existence of a patent or application isn't a guarantee that it will make an appearance in a future consumer device, it does at least indicate areas of interest for the iPhone producer.
Aside from the similar earlier patent, Apple has also looked into the possibility of using self-healing elastomers to protect connectors and ports since late 2015. Apple has also suggested the use of a port that uses a mesh "umbrella" to deflect liquids from an audio channel, effectively helping prevent water from interfering with speakers.
Comments
I expect that, at some point, we will see an iPhone without either ports or buttons. Just a slab of glass wrapped in a continuous, seamless band of 7000 series alloy "Aluuminium"
That's what I was thinking.
USB-C for the iPad and Mac
No ports at all for the iPhone. Then they can make it thin enough to shave with.
I kind of doubt the iPhone will ever go to USB-C. I think the Lightning port will persevere a couple of more years until wireless charging can replace it. Wireless backups will handle most customers needs, while something like the SmartConnector could replace Lightning for those who need to make a physical connection for any reason.
Im just wondering why Apple would ever see the need to waterproof the inserted Lightning connection with a device. Is it in case it gets knocked off the counter into the toilet while charging? I can't say my iPhone has ever been in jeopardy of being knocked into water while a Lightning cable was plugged into it. I suppose I could have knocked my coffee cup over while it was plugged in, but how often does that happen?
First (and this is one of the biggest,) CarPlay requires a wired connection. I know they have developed a wifi protocol for it, but I've only heard of one aftermarket stereo that supports it, so for all intents and purposes it's a wired protocol. Beyond that, even if some manufacturers start adopting the wifi protocol, eliminating the port would make the phones incompatible with every existing CarPlay car out there.
Many cars don't have a stable flat place to place a phone, either. With a cable, I can have my phone in a cup holder, in my lap, on the dashboard - wherever. It still works fine.
Second, having a wired port is critical for recovery purposes. Granted, this is a rare occurrence, but look at the situation last week where WatchOS bricked people's watches and they were forced to send them in.
Charging via a cable is faster and more efficient than wireless. Currently, Qi charging mats are roughly 65% efficient - That's a ton of wasted energy. All the people who carry a battery pack or a battery case around to charge their phone would suddenly be getting 35% less charge out of them. Because signal strength falls of exponentially, cases have a significant effect on both efficiency and speed of charging, and if you have one of those pop holders on the back of your phone you can forget about it.
Finally, a direct financial reason for Apple not to eliminate the port is cost. Charging pads are significantly more expensive than cables. If Apple were to skip the lightning port, they would have to include a charging mat with every phone. Given the fact that they are too cheap to include a better USB power adapter or a 3.5mm headphone adapter, it's hard to see them including a charging mat.
take some compressed air or a toothpick and clean out the port. If some lint gets down in the bottom of the port it can prevent the plug from seating properly and cause the symptoms you describe.
And yes, I use a 15" MacBook Pro at work. I also plug in my Mac mini at home even though it has wireless and it would be one less cable running along the floor. Same goes for my AppleTV. It never runs off wireless....always plugged into the router with ethernet.