Page 1 of 1

PhoneCall as part of a process flow (RDMLX + Offline)

Posted: Mon Mar 03, 2014 10:25 pm
by MarcusLancaster
Hi all.

I'm trying to incorporate the PhoneCall operation with a "flow" of user activity in an RDMLX Offline app. This works to a certain extent (in that I can initiate the call) but on completion of the phone call the user is left in the native iPhone telephone app. The user has to then manually navigate back to the LR app to continue where they left off.

The concept I'm aiming for here is that the user selects a customer record from within the app, and the PhoneCall operation is initiated. When the call is complete I'd like to be automatically routed back to LR to show the user a "fill in details of the conversation" form where they can record details of that call. A nice to have would to be able to record the length of the call...

I've tried initiating the PhoneCall from javascript linked to a button press, and that initiates the call, but any subsequent steps in the Javascript to initiate downstream form opens etc are either ignored, or happen immediately and not after the phone call is completed.

I wonder if anybody has done anything like this?

Cheers.

Marcus.

Re: PhoneCall as part of a process flow (RDMLX + Offline)

Posted: Mon Mar 03, 2014 10:46 pm
by MarcusLancaster
As an aside - if I replace the PhoneCall, with a SendTextMessage, even though I'm composing the text message, subsequent Javascript activity waits for the text message to be sent. So in that situation, it does give me what I need.

Re: PhoneCall as part of a process flow (RDMLX + Offline)

Posted: Tue Mar 04, 2014 10:03 am
by MarkDuignan
Not possible on iOS.
Making phone calls is a fundamentally async thing.
It is also an independent process – so there is not even the possibility of an onCompleted type of event.
Maybe it would work on Android – but it could get very messy with different versions - and it might work as a 'side-effect' and thus stop working in a future version.