Notify API and TC21

// Expert user has replied.
J J.K. Oakley 2 years 3 months ago
15 4 0

Hello,

Does the Notify API work on TC21? We've been trying the sample code in the link below without any success:

https://techdocs.zebra.com/datawedge/latest/guide/api/notify/

If TC21 doesn't support the Notify API, how can we programmatically generate beeps on the device?

Your help is much appreciated.

Thank you.

Please register or login to post a reply

4 Replies

J James Swinton-Bland

Hi,

The notify API is supported on the TC21, provided you're running DataWedge 8.2 or later.

If you have some more detail on your implementation I may be able to help you find the issue.

Thanks,

James

J J.K. Oakley

Thanks for your reply, James.

We are using Xamarin Forms to create the app on a TC21; the device is running DataWedge 8.2.60.

Here is a snippet of the implementation in Android we have so far:

private void SendNotification()
{
Intent dwIntent = new Intent();
Bundle notify = new Bundle();
Bundle notifyConfig = new Bundle();
dwIntent.SetAction(ACTION_DATAWEDGE_FROM_6_2);

notifyConfig.PutString("DEVICE_IDENTIFIER", "AUTO");
notifyConfig.PutIntArray("NOTIFICATION_SETTINGS", new int[] { 17 });
notify.PutBundle("NOTIFICATION_CONFIG", notifyConfig);
dwIntent.PutExtra(EXTRA_NOTIFY, notify);
dwIntent.PutExtra(EXTRA_SEND_RESULT, "true");
_context.SendBroadcast(dwIntent);
}

It doesn't generate any error, it simply doesn't beep at all.

Thank you,

JK

J James Swinton-Bland

Hi JK,

Just to confirm - this API is for sounding beeps on bluetooth scanners, specifically the RS6000, RS5100 and DS3678. Are you using one of these devices? If so, I think the issue is related to the DEVICE_IDENTIFIER extra; you'll need to explicitly specify one of the above scanners instead of having "AUTO"

If you're just trying to make the TC21 itself beep, then I would recommend using Android APIs instead.

J J.K. Oakley

Thanks for the heads-up, James. I was able to achieve what we needed using Android API.

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