sindresorhus/Actions

Action proposal: Join Wifi Action

Rihcus opened this issue ยท 8 comments

Description

Give an action that allows user to input a wifi ssid and password to trigger join wifi prompt. Uses NEHotspotConfigurationManager

https://developer.apple.com/documentation/networkextension/nehotspotconfigurationmanager

https://forums.developer.apple.com/forums/thread/111307

IMG_0757

Example

I added this in the latest TestFlight build: https://testflight.apple.com/join/fJGUrsZx

It works. Out of curiosity is there any reason the join Wi-Fi action opens the action app first before prompting the join option.

It's explained in the action description.

Do you have any issues with disconecting wifi? I tested the action with a ipad with and a hotspot hotspot on my android phone and I noticed after connecting the ipad gets disconnected within a few seconds.

On the other hand if I try joining the hotspot via control center wifi menu or settings wifi menu I don't experience disconnections.

One other strange thing I noticed is if I create a shortcut that runs the join wifi action with wait for connectin setting off and have a open actions app acction:

IMG_D7F9B867DF35-1

If I wait to for the above shortcut to finish then click "join" the network will stay connected as long as the actions app is kept open. However when you leave the app within 20 seconds the network will disconnect.

iPadOS Version: 17.3.1
Actions app Version: 3.1.1 (66)

Do you have any issues with disconecting wifi? I tested the action with a ipad with and a hotspot hotspot on my android phone and I noticed after connecting the ipad gets disconnected within a few seconds.

On the other hand if I try joining the hotspot via control center wifi menu or settings wifi menu I don't experience disconnections.

One other strange thing I noticed is if I create a shortcut that runs the join wifi action with wait for connectin setting off and have a open actions app acction:

IMG_D7F9B867DF35-1

If I wait to for the above shortcut to finish then click "join" the network will stay connected as long as the actions app is kept open. However when you leave the app within 20 seconds the network will disconnect.

iPadOS Version: 17.3.1 Actions app Version: 3.1.1 (66)

Also not sure if this should be moved to a bug report

@Rihcus Should be fixed in the latest TestFlight build (67).

@Rihcus Should be fixed in the latest TestFlight build (67).

Thanks for the fix, bug is gone ๐Ÿ‘

No issues with with wait for connection (both on and off)