Data wedge with single profile

K Kishor PV 3 years 7 months ago
10 1 0

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

Please Register or Login to post a reply

1 Replies

Y Yanis Dalabiras

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

CONTACT
Can’t find what you’re looking for?