iOS Code Snippet Bundle Configuration

This is a list where you can extract some application information
As you need
I found it and I said I share it with you

https://developer.apple.com/documen...nformation_property_list/bundle_configuration

B4X:
Sub PackageName As String
    Dim no As NativeObject
    no = no.Initialize("NSBundle").RunMethod("mainBundle", Null)
    Dim name As Object = no.RunMethod("objectForInfoDictionaryKey:", Array(<property list key>))
    Return name
End Sub

Example

B4X:
Sub PackageName As String
    Dim no As NativeObject
    no = no.Initialize("NSBundle").RunMethod("mainBundle", Null)
    Dim name As Object = no.RunMethod("objectForInfoDictionaryKey:", Array("CFBundleIdentifier"))
    Return name
End Sub

Choose the information you want to extract
 
Top