Hello everyone,
I am having problem with Action Bar Intent on Xibo, I have installed following the instructions at Action Bar "Run Intent" Mode - #7 by Nuno_Veloso. However, I am not able to switch over to my android app by setting up Action Bar Intent on CMS.
I also tested with ADB and found that my app received the intent via the BroadcastReceiver
the intent command I sent:
adb shell broadcasting -a com.example.MY_ACTION
-
Settings on my CMS:
-
In the app’s code, register the
BroadcastReceiver
with theIntentFilter
that matches the action string used by the external app.
private lateinit var xiboReceiver: XiboReceiveroverride fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)xiboReceiver = XiboReceiver() IntentFilter filter = new IntentFilter("com.example.MY_ACTION") if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.TIRAMISU) { registerReceiver(xiboReceiver, filter, Context.RECEIVER_EXPORTED) } else { @Suppress("DEPRECATION") registerReceiver(xiboReceiver, filter) }
}
can anyone help me? Thank you everyone.