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.
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."
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With