tamal88 wrote:
But you can still do it without the carrier app by simply going to Settings > Apps > Phone > Call Forwarding then enable the toggle and enter the number to which you want to forward the call to enable this feature. Then when you want to disable it follow the same process to toggle off the Call Forwarding. So, why can't I automate this ?
I can reach the Settings > Apps > Phone part using the URL scheme
App-prefs:com.apple.mobilephone
but the trick is to go one step forward to the Call Forwarding option, if I can achieve that then things can be done.
Yes, you can turn call forwarding on and off in Settings, but it's still a feature provided by your carrier. If your carrier doesn't support the feature, it wouldn't be an option in your phones settings. Whether it can be automated or not, I have no clue. Natively iPhone doesn't offer such a feature. Is it possible to create a Shortcut to do this, maybe. But since this isn't a feature I've ever seen anyone ask for, only someone who has tried to create such a shortcut would need to find this thread and chime in. I'm not sure many will see this or chime in. That's why it might be a better option for you to contact your carrier and see if they know if there is any way to automate this. My guess is Full Automation is a no. You likely can create a shortcut for call forwarding and place it on your home screen. But that would still require you to activate it and deactivate it when you don't want your calls forwarded.
Here is a link about how to create shorcuts --> Shortcuts User Guide - Apple Support
Ps: I don't think this is a bad idea at all. You might want to let Apple know you'd like to see such a feature in a future update and you can do that here --> Feedback - iPhone - Apple