This discussion is archived
0 Replies Latest reply: Nov 12, 2012 4:40 AM by 955891 RSS

Use of EVENT_PROACTIVE_HANDLER_AVAILABLE?

955891 Newbie
Currently Being Moderated
Hello,

does anybody any idea how to use the event EVENT_PROACTIVE_HANDLER_AVAILABLE?

Actually I found this page:
http://developer.gemalto.com/home/technology/nfc/nfc-applet-development/use-of-stk-for-contactless.html

It says:
*******************
Use of STK for Contactless

In an NFC contactless applet, only the process() method is used to deal with contactless data. In order to use the SIM Toolkit interface to interact with the user, the processTooolkit() method must be called because proactive commands can only be sent from this method.


The following method describes a way to achieve this:

1. Register to the EVENT_PROACTIVE_HANDLER_AVAILABLE event at the end of the process() method.
2. Catch the EVENT_PROACTIVE_HANDLER_AVAILABLE event in the processTooolkit() method and perform the proactive action there.
*******************

Btw, I'm not using Gemalto cards, but as I know from the vendor, my cards are also supporting this event.. Unfortunately, if I register this event using setEvent(EVENT_PROACTIVE_HANDLER_AVAILABLE); in the process() function, the Toolkit function processToolkit() are not called..

Does anyone experience, or have an idea about this problem?

What I want to do is: I have a NFC Toolkit applet, which works contactless, and want to send a sms and display text immediately if any contactless apdu processed in my applet..

Regards and thanks in advance..

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points