AppIdentityService::getApplicationId return "None"

52 Views Asked by At

I am trying to setup local development on my computer and have had some success. I can start the local server with dev_appserver.py and can access my local MySQL server through my php app.

I'm a noob with gcp, but have many years of experience.

When I try to execute the following code it returns "None":

$applicationID = AppIdentityService::getApplicationId();

Where do I set the Application ID?

2

There are 2 best solutions below

2
Travis Webb On BEST ANSWER

The Application ID is generated and assigned by the App Engine runtime environment. It will be null or None when run locally before the app is deployed to App Engine.

0
Andrei Tigau On

There is not way you can set your Application ID by yourself. There is also no method for that. The Application ID is set by App Engine after your deployment.

Here there is a list of all the methods of the AppIdentityService