Back
GetPackageName
JS
Py
Hello World
Returns the package name of the APK.
app.GetPackageName() →
String
Example - Show Package Name
function
OnStart
(
)
{
var
pkg
=
app
.
GetPackageName
(
)
;
app
.
Alert
(
pkg
)
;
}
from
native
import
app
def
OnStart
(
)
:
pkg
=
app
.
GetPackageName
(
)
app
.
Alert
(
pkg
)
Copy
Copy All
Run