Hi,
As per the documentation it is possible to have a single data wedge profile for multiple application but I'm facing some challenge with this approach.
MyProfile:
Associated apps: Selected App1 and App2 activities
Intent output -> Given intent action and category -> Intent delivery Send via startActivity
App 1 - Has an activity with the intent filter matching (action and category) the profile.
App 2 - Has an activity with the intent filter matching (action and category) the profile.
With the above settings
Q1: Since intent filters of both the app is same up on scan selection option(App1 and App2) will be shown to the user to select the app(Because of matching intent filter). Is it possible to mention different intent action and category for each application? or do we need to have one profile for each application?
Q2: I've given the same intent filter in both the application it is going in to App2 from App1 after the scan.
Please assist me
I'm overriding onNewIntent method to get the barcode values
Device: TC51
Data wedge: 5.1.8
Thanks,
Kishore PV
Data wedge with single profile |
1 Replies
Hi Kishore,
You could send the data as a broadcast rather than startActivity, the register or unregister the broadcast receiver when your application is brought to the foreground.
To specify a different intent action and category for each application you would indeed need to use different DataWedge profiles