Support offline calling in open fire? - openfire

I am using astra chat for open fire. I want to have a feature where an online user calls an offline user. in this case i need to use voip from server to his cell.
How do i know about an offline call event on the server?
Does open fire receive such event?

Related

Prevent closing form except on button

I'm coding an application which is fullscreen.
I don't want anyone to be able to alt+tab/win+tab/alt+f4/alt+esc etc. out of the application.
I DO however have an 'administrator' PIN login, where doing so closes the form to show the desktop.
How do I go about stopping anyone closing the form, unless they enter the PIN?
The Form.FormClosing event is what you should handle. It supplies a FormClosingEventArgs argument with CloseReason and Cancel properties. This could be used to roughly handle your scenario.
This answer is not meant to turn your WinForms/Win7 app into a kiosk app. At best, you can prevent Alt+F4 or mouse attempts to close your applications. Do not waste your time trying to circumvent app switching. If Win 8 with kiosk mode is not a viable option for you, don't promise the same to your end users. In all other cases, your end users will have access to the whole OS at the level of the user currently signed in.

Send Intercom Message every time an event occurs?

Hi im trying to send messages through intercom every time an event is sent. Let's say i have a feature in my product which is submitting intercom events every time the user clicks a certain tab. I would like to send a message on every occur of the event. I have already set an auto message in my intercom app, but i´m just able to send the message the first time the event occurs.
According to the interecom support team, auto-messaging is the currently the only way to do it. For now, they do not support advanced/customized triggers like "send the user a welcome message for the first 3 times when he clicks some link"

How to handle intercommunication between windows

I am able to open a new window by clicking on a button in another window, but my requirement is that I should be able to listen to the events generated from the other window.
Can anybody help me? How can I register the events from one window and listen to them in the other, so that intercommunication can happen?
My answer would be that you shouldn't. Register your listeners in a common controller--that way, whatever events are fired by either window can be captured by the controller, and the controller can decide what needs to happen to what window in what circumstance.
I use TIBCO PageBus (http://developer.tibco.com/pagebus/default.jsp) for inter application events within my ExtJs applications. It is a JavaScript event bus. For instance, similar to what you describe, I have an editor window, which has a button to display a preview window. The editor window on a save, raises a update content event on the page bus, which the preview window subscribes to, upon receiving the event it refreshes the preview.
One of the advantages of this approach is that many clients can subscribe to events, if you have a complex application.

Is there a way to detect when the Facebook permissions dialog is shown?

I'm using the FB Javascript SDK, and handling login via a custom button that calls FB.login. Ideally, I'd like to be able to record some tracking data whenever a user is shown the app approval/permissions dialog so that I can see how many users bomb out at this stage. Unfortunately, I can't seem to find a reliable way of achieving this.
If the user is already logged in to FB, I can infer whether it will be shown by checking the login status before calling FB.login. If the user is not_authorized, then I know the permissions dialog will be shown. But if the user is not logged in, my information is more limited. I can assume that the user was shown the dialog if they finish the process as not_authorized, but if they end up being connected then I have no way of distinguishing between a user who was already connected and one who just gave approval.
I'd hoped that the auth.prompt event might help, but it doesn't seem to be fired for the sequence starting from FB.login. Any suggestions?
Ideally, I'd like to be able to record some tracking data whenever a user is shown the app approval/permissions dialog so that I can see how many users bomb out at this stage.
Look at your app insights, there you’ll see Auth Dialog Conversions.
No need for own tracking for that.

Handle application exit

I want to run some cleanup code(like unregistering scheduled notifications) when a user quits the application by using the Alt-F4 or swipe down gesture. Is there any way to handle an application exit in WinJS? I've read the docs for the WinJS.Application object but don't see any methods to handle user exits.
There is no special event that indicates that an app is being closed:
There's no special event to indicate that the user has closed an app. After an app has been closed by the user, it's suspended and terminated, entering the NotRunning state within about 10 seconds. If an app has registered an event handler for the Suspending | suspending event, it is called when the app is suspended. You can use this event handler to save relevant application and user data to persistent storage.
So you'll want to handle a suspend/resume instead. The gory details for handling a suspend are here, but here's a summary:
Register for the checkpoint event that will tell your app that it's being suspended.
Save whatever data you need to save in the event handler for that event.
Release resources, suspend notifications, etc. in the event handler as well.
On resume, you can check if the app was closed by the user using the ApplicationExecutionState enum. That may or may not be relevant to you, since there doesn't seem to be a way to differentiate why checkpoint event was fired and your only option is to save your state in the event handler no matter why it happened.
There are additional suspend/resume guidelines here, and you may find this sample app helpful.