Official Content

Specifies the URL of the Store page where the Application is published, or a link where the APK itself is deployed.

Scope

Objects: Menu, Panel, Work With (Only Main Objects)
Generators: Android

Description

The Update URL property must be set from the moment the application is created. Doing it later will not work because it is not possible to add an install APK permission on an APK that is already built.

When you indicate the APK link (for example: https://apps5.genexus.com/Id85e32a53c32e017634b1c0a1826eaf4f/Panel1.apk), the end user must grant permissions for the application to update itself. So, the update must only be confirmed in the case of changes to the version.

For applications published on Google Play, you must provide a URL like:

https://play.google.com/store/apps/details?id=<package_name>

Where <package_name> is the one specified in the Android Package Name property. For example: https://play.google.com/store/apps/details?id=com.artech.MyKB.MyMainObject

If the application is published, for example, in Samsung Apps Store, or in any other store, then this URL must change.

To support multiple stores, you may use the market URI scheme (as follows), but always bearing in mind that the application must be published on them.

market://details?id=<your_app_package_name>

In that case, the device should display a selector on the bottom of the screen indicating the stores installed on the device and where the end user may download a new version of the app.

Versioning - Android - Multiple stores selector using market URI scheme

The permission generated with the Update URL property when using an APK in the URL is the following:

<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES" />

Runtime/Design time

This property applies only at design time.

How to apply changes

To apply the corresponding changes when the property value is configured, Build the Main Object.

Availability

This property is available since GeneXus 15 Upgrade 4.

See Also

HowTo: Version Your Native Mobile Application

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant