I have created a soft AP with ESP8266 to which I'm connecting through android 6.0 marshmallow mobile. After connecting I get a notification on mobile stating "Wifi has no internet access" if I ignore it and open a browser window to open my web server page or use a custom built app to communicate with ESP web server no request is processed by ESP8266. However everything works fine after I click on stay connected option "Yes" in that notification. I'm trying to avoid any manual operation by user thus trying to fix it programatically. Is it possible to use an ESP as a router AP without internet access and connect to it using an android app without dealing with this notification manually.
Update: If I connect to this AP via custom built app programatically, this notification does not appear and all communication to ESP remain blocked by android.
ESP code:
WiFiServer server(80);
WiFi.softAP("ssid", "password");
IPAddress myIP = WiFi.softAPIP();
Serial.print("AP IP address: ");
Serial.println(myIP);
server.begin();
delay(500);
Serial.println("Server started");
Serial.println(WiFi.localIP());