user2387299
user2387299

Reputation: 13

AppIdentityService::getApplicationId return "None"

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?

Upvotes: 1

Views: 53

Answers (2)

Andrei Tigau
Andrei Tigau

Reputation: 2048

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

Upvotes: 0

Travis Webb
Travis Webb

Reputation: 15018

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.

Upvotes: 1

Related Questions