lock another app mobile in unity like service android

hello every one, i have a problem and may be ask a question?

I want run a service in unity when player exit my game, this service will lock 1 app in their phone.
I found this link Communication between an Android App and Unity - Jean Meyblum - Game Programer but it work on Android. How i can make this run in another platform (IOS, WINPhone,…)
any help, please?
thanks!

No. The code in the post you’ve linked is in native Java which uses mechanics of the Android operating system. It only works on Android. There might be something similar for other platforms, but the code from this post won’t help anything. It’s completely different on other platforms.

iOS is very restrictive when it comes to development. See this SO question. If you find a way on iOS you most likely need to use objective-C and xcode to do that. I never had a win phone so i can’t say anything about that.

I’m also not sure what you mean by “lock 1 app”. The post you’ve linked is just about communicating with a background service.