Flutter url_launcher is not launching url in release mode

I had the same problems with Android 11 (API level 30) – everything worked well before software update (and on my test device that is running earlier version) – The following seems to have put me on the right track https://developer.android.com/training/basics/intents/package-visibility#all-apps I solved my problem by adding the following in the AndroidManifest.xml (although it may … Read more

How to start/ launch application at boot time Android

These lines of code may be helpful for you… Step 1: Set the permission in AndroidManifest.xml <uses-permission android:name=”android.permission.RECEIVE_BOOT_COMPLETED” /> Step 2: Add this intent filter in receiver <receiver android:name=”.BootReceiver”> <intent-filter > <action android:name=”android.intent.action.BOOT_COMPLETED”/> </intent-filter> </receiver> Step 3: Now you can start your application’s first activity from onReceive method of Receiver class public class BootReceiver extends … Read more

How to set default app launcher programmatically?

This is actually possible with a little workaround: Create an empty Activity that acts as a launcher called FakeLauncherActivity. Add it to your manifest as a disabled component: <activity android:name=”com.path.to.your.FakeLauncherActivity” android:enabled=”false”> <intent-filter> <action android:name=”android.intent.action.MAIN” /> <category android:name=”android.intent.category.HOME” /> <category android:name=”android.intent.category.DEFAULT” /> </intent-filter> </activity> Check whether your desired launcher activity is the default one (with the … Read more

tech