How to enable wifi on startup

How to ask permission to enable wifi on screen start..............!
i want to make an app to enable wifi on App startup.

Hi younusAI

If your App Code includes a Block that, for example, requires the Internet, access should occur automatically, since the phone User will have needed to enable WiFi for it to be available.

For example, set-up a tiny test Project:

Build as an APK. The website should be displayed immediately the App is run if the phone has previously been setup with the WiFi System nearest to it, no in-App permission required.

If that is not what you require, you could check-out Taifun's WiFi extension:
https://puravidaapps.com/wifi.php

Hi
Thank you for reply

How can I set Port in App inventor?


help From anyone will be appreciated