Closed alexsegura closed 3 months ago
Actually this is not the good implementation, it crashes on devices with Android <= 10 (from what I see).
Fatal Exception: java.lang.NoSuchMethodError: No virtual method registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;I)Landroid/content/Intent; in class Landroid/content/ContextWrapper; or its super classes (declaration of 'android.content.ContextWrapper' appears in /system/framework/framework.jar)
I will send another PR using ContextCompat
When running on Android 14, the app crashes immediately with the following error:
This is a hotfix, seems a better solution would be to use
ContextCompat