Build Android project
Options
is there any way to make my apk run under background .
i made a chatting rooms .... But
photonview , all connection . talking and chatting sound , all that gone if the app is on background .
i tried to use Anbdroid Studio and Edit this file "UnityPlayerActivity.java commenting out the calling on the Pause . but it did not work .
please ? I worked 3 months on this project and here is this problem can't find any way to solve it . I can't understand why unity team did not provide any script for this .
i made a chatting rooms .... But
photonview , all connection . talking and chatting sound , all that gone if the app is on background .
i tried to use Anbdroid Studio and Edit this file "UnityPlayerActivity.java commenting out the calling on the Pause . but it did not work .
please ? I worked 3 months on this project and here is this problem can't find any way to solve it . I can't understand why unity team did not provide any script for this .
0
Comments
-
Hi @Tamim_Zoabi,
It's not possible to have custom logic in the background in Unity.
You make a custom native Android plugin and run something in the background using a Service but it can't be Photon related.
PUN keeps the connection alive though on Android using ACKs only background thread.0