Producing APK
Build two APKs one with keeping the launcher intent filter for MainActivity and the other without keeping the launcher intent filter for MainActivity. While building and providing WinZO APK do the following changes for the main activity in the manifest file.
Keeping the launcher intent filter This is for Android 10 and above devices
<activity
android:name="com.base.aidllib.MainActivity"
android:exported="true"
android:theme="@style/SplashTheme">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="com.base.aidllib.MainActivity" />
</intent-filter>
</activity>Not keeping the launcher intent filter This is for Android 9 and below devices
<activity
android:name="com.base.aidllib.MainActivity"
android:exported="true"
android:theme="@style/SplashTheme">
<intent-filter>
<action android:name="com.base.aidllib.MainActivity" />
</intent-filter>
</activity>Building Apk
Analytics
Use WinzoSdk.connectToWinZO method to connect to WinZO. We Receive a WinZOClient in onConnectedToWinZO(winZOClient: WinZOClient) callback use this client to log events winZOClient.logEvent("Log Dummy Event") If we want to add parameters to an event pass a bundle in logEvent method
Last updated
Was this helpful?