-1

I have worked a bit with URL schemes and have managed to access a custom app that i created using another app. My requirement is to block my custom apps once the battery level goes less than a certain level.

Is there any way to do that? What data will I have to pass through the URL scheme?

By block i mean either disable or uninstall completely. Just seeking some control.

Charles
  • 50,943
  • 13
  • 104
  • 142

2 Answers2

0

You cannot completely block your application from launching if it's being opened through URL scheme. I suggest checking whether your app is launched by opening a scheme and then just display an alert view with a notice that your app requires the phone to have more battery power (or be charging).

Eimantas
  • 48,927
  • 17
  • 132
  • 168
0

i think you should use push notification, it can handle your requirement

SachinVsSachin
  • 6,401
  • 3
  • 33
  • 39