D
D
Dirofu2020-11-20 01:11:13
Android
Dirofu, 2020-11-20 01:11:13

How to prevent the game from being displayed over the lock screen UNITY | C#?

I create HyperCasual on Unity. When testing on the phone, during the lock, the game remains in focus, i. on top of everything. How to remove such a focus for proper operation? The test is carried out on the Android 10 system. I tried to google the problem, but most likely I am not identifying it correctly. I would be grateful for help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dirofu, 2020-11-20
@Dirofu

Solved the problem. The essence was in Development Build. After disconnecting, everything began to work correctly. If this is not your problem, then here are a couple more possible reasons:

  1. Do you have plugins that modify the manifest?
  2. Enable wake blocking in permissions. Application.runInBackground is "true"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question