Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I get the Application ID at runtime

I need the Application ID to construct the correct <applicationid>.appspotmail.com address, and I'm having a hard time finding out how to retrieve it at runtime.

like image 365
Sverre Rabbelier Avatar asked Apr 02 '11 12:04

Sverre Rabbelier


People also ask

How do I find app ID in Python?

The new preferred way of retrieving your app id is to use appidentity. get_application_id(). The --default_partition flag can be used for applications whose code relied on a specific environment variable."

What is the application ID in android?

Every Android app has a unique application ID that looks like a Java or Kotlin package name, such as com. example. myapp. This ID uniquely identifies your app on the device and in the Google Play Store.

How do I find my Windows app ID?

Open Run, enter shell:Appsfolder, and select OK. A File Explorer window opens. Press Alt > View > Choose details. In the Choose Details window, select AppUserModelId, and then select OK.


1 Answers

The recommended approach now is to use app_identity.get_application_id():

http://code.google.com/appengine/docs/python/appidentity/functions.html#get_application_id

See the warning box here for details:

http://code.google.com/appengine/docs/python/runtime.html#Requests_and_Domains

like image 143
Saxon Druce Avatar answered Sep 24 '22 00:09

Saxon Druce