Page 1 of 1

How to use Event StartCallButton

Posted: Thu Aug 16, 2012 2:57 pm
by Emmz

Good Day !

Is the Phonegap onStartCallKeyDown implemented ?
I Tried to use this but the Tiggzi supplied "startcallbutton" never gets fired on test phone Android 2.3.5
I also tried my own by adding.

DeviceReady
codedocument.addEventListener("startcallbutton", onStartCallKeyDown, false); /code
Javascript
codefunction onStartCallKeyDown() {
localStorage.setItem('CallTimeStart','Has Fired');
}/code
Am I not getting this?
Thanks.


How to use Event StartCallButton

Posted: Thu Aug 16, 2012 6:37 pm
by maxkatz

Use the 2nd approach now...when you set up the event via the builder, the event is not created correctly. We'll fix it.


How to use Event StartCallButton

Posted: Thu Aug 16, 2012 9:13 pm
by Emmz

Ok Max. Thanks.
My 2nd approach doesn't work either.
Maybe when u fix it...


How to use Event StartCallButton

Posted: Thu Aug 16, 2012 9:49 pm
by maxkatz

No connection to the builder issue.. if you bind the events manually, it should work. Check on PhoneGap for examples or any known issues...


How to use Event StartCallButton

Posted: Thu Aug 16, 2012 10:57 pm
by Emmz

Ok. Spent half the day looking for reference on this. But found squat.
Looks like an issue with the phone or android version maybe.
Thanks again Max

Oh ! Any other Tiggzi events in the Designer Tab that don't function ? Or are not implemented.. Like Search button, On/Off Line etc. ?
Would save me allot of time testing them...


How to use Event StartCallButton

Posted: Thu Aug 16, 2012 11:04 pm
by maxkatz

All events should be supported.. the problem is with code generation. For some reason the events are not added to the app source. It's a bug.

As for the actual events working -- as you see it's not simple out there.. it's different for every Android version.


How to use Event StartCallButton

Posted: Fri Aug 17, 2012 4:29 am
by Emmz

Tks again for the reply. I plan On using Eclipse to create the apk in the end. So I could still use Tiggzi events and just find and add the missing bits later.


How to use Event StartCallButton

Posted: Sat Aug 18, 2012 5:43 pm
by maxkatz

The code generation is correct, you will get the events when you export the app source or binary.