Blank screen

Hi, 

 

I develop on Mac Catalina 10.15.4 , latest Corona version 2020.3581 .

 

My app has worked fine a couple of days ago, I added Photon plugin but was also working fine. Now today, after some days of develop only in simulator, on Android phone only displays the Corona splash screen followed by eternal blackness.

 

I renamed my project folder in a new name. Rebuild with live option and everything works well on my Android app, sync and so on!

 

I uninstalled my old project on Android phone, renamed the project on the previous name and rebuild. Again black screen.

 

There is a possibility to reset an old Corona Live Builds to have again the correct old name project ?

 

Tank you!

 

Renato

What error are you getting in the console?

Some plugins do not support Live Build. Also, you may want to reinstall app if sync got broken. Uninstall and install it again.

What error are you getting in the console?

on simulator the game works fine.

I’m not able to see the console on my phone, is possible?

Some plugins do not support Live Build. Also, you may want to reinstall app if sync got broken. Uninstall and install it again.

I tried but without success.

Only one time, I terminated on phone the app, and the game started. But just one. ;(

There is a possibility to delete (and so reset) a Corona Live Builds project ?

 Thanks

Renato

I found the solution !!

(I tried to build an example on SDK and worked fine, so was some mistake on my code)

 

My code was :

[…]
photon = require “plugin.photon”
LoadBalancingClient = photon.loadbalancing.LoadBalancingClient
LoadBalancingConstants = photon.loadbalancing.constants
Logger = photon.common.Logger
tableutil = photon.common.util.tableutil
[…]

because analyzing the code I used always the “plugin.photon”.

But on the device - now for sure - on use the internal photon.lua module.

 

So the correct one is :

[…]
if pcall(require,“plugin.photon”) then – try to load Corona photon plugin
print(“Demo: main module:”,“Corona plugin used”)
photon = require “plugin.photon”
LoadBalancingClient = photon.loadbalancing.LoadBalancingClient
LoadBalancingConstants = photon.loadbalancing.constants
Logger = photon.common.Logger
tableutil = photon.common.util.tableutil
else – or load photon.lua module
print(“Demo: main module:”,“Lua lib used”)
photon = require(“photon”)
LoadBalancingClient = require(“photon.loadbalancing.LoadBalancingClient”)
LoadBalancingConstants = require(“photon.loadbalancing.constants”)
Logger = require(“photon.common.Logger”)
tableutil = require(“photon.common.util.tableutil”)
end
[…] 

 

Now works and sync!!

 

Ciao

Renato