0

Some ROM's like Xiaomi's MIUI allows the user to disable network access for a given app:

switch mobile network access for whatsapp Font: pcmobitech

I am working in a TWA application and in ROM's like the Xiaomi, is possible to block Chrome's network access.

Is there a way to programmatically check if Chrome has access to the network?

Things to consider:

  • I've already try to use PackageManager with ACCESS_NETWORK_STATE, INTERNET and CHANGE_NETWORK_STATE permissions.
  • I do not want to add a permission for my app.
  • Checking for network access does not work either because the smartphone has internet access, the ROM is blocking a specific app to access it.
raphaelbs
  • 440
  • 4
  • 13

0 Answers0