Auto-Run Post-Install
Method 1: Modify the Manifest File
<meta-data android:name="cloudpos_activity_auto_start" android:value="your.component.path" />
<meta-data android:name="cloudpos_service_auto_start" android:value="your.component.path" />
<meta-data android:name="cloudpos_receiver_auto_start" android:value="your.component.path" /><action android:name="android.intent.action.AUTO_START" />Example of AndroidManifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.wizarpos.pinpadui.test">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<!-- cloudpos_service_auto_start ,cloudpos_receiver_auto_start -->
<meta-data android:name="cloudpos_activity_auto_start" android:value="com.wizarpos.pinpadui.test.MainActivity" />
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<action android:name="android.intent.action.AUTO_START" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<receiver android:name=".XXXXReceiver">
<intent-filter>
<action android:name="android.intent.action.AUTO_START" />
</intent-filter>
</receiver>
<service android:name=".XXXXService" android:enabled="true">
<intent-filter>
<action android:name="android.intent.action.AUTO_START" />
</intent-filter>
</service>
</application>
</manifest>Method 2: Configuration via TMS
Last updated