Does Titanium support XMPP? - titanium

The question says it all, I know there are xmpp projects written in node.js and JS, but from what I've seen it looks like Titanium only has a chat substitute with TCP.

Not out of the box. But you can wrap an existing XMPP / Jabber client like ChatSecure (which is free an open-source) in a Titanium module and use it.

Related

Keycloak with Angular + TypeScript for iOS/Android

I have an Angular(2) + TypeScript application using Keycloak as the authentication/authorization provider,
would like to integrate Keycloak with NativeScript to make the existing web application cater to iOS/Android users.
could see Keycloak supports iOS/Android as listed here : http://www.keycloak.org/docs/2.5/securing_apps_guide/topics/overview/supported-platforms.html?408DD571-0042-4EBB-BC37-1F2966A56651=123451
Is there any NativeScript based plugin to integrate with Keycloak (could not find anything here : http://plugins.nativescript.org/ ) ? pointers for a possible solution would be of great help
Version:
tns --version
2.5.0
Looks like the answer is no. But I start playing around, and to create a plugin, we have basically two strategies:
Extend a pure OAuth client for nativescript. There is this plugin: http://plugins.nativescript.org/plugin/nativescript-oauth
Port the keycloak.js to Nativescript.
I like the second approach because there are more features build in keycloak, so my first try was edit the original code and remove the use of window and other API's that are not present in the browser. I quickly find out that keycloak.js code is a mess (at least to me), and I'm getting a bad time undestanding how to edit its 1258 lines. Because of that, I start a complete rewrite, highly inspired in the original. I'm actualy reading the code and trying to port the project piece by piece, reorganizing for test, and abstracting the use of browser API's to port for web and nativescript.
You can check the code here: https://github.com/atende/keycloak-js-universal but is not close to ready.
The problem is, I have no time to do it :-), but will get done eventually, because I need that too.
Is important to mention that I create a abstraction for Angular 2 that works using the keycloak.js for security, and porting the keycloak.js is strategic to make the library work for Angular 2 Nativescript, which is on my motivation to do it. You can check the project here: https://github.com/atende/angular-spa
Any contributions are wellcome ;-)

PhoneGap for Windows Store Apps

Can we use PhoneGap for Windows Store Apps that will be developed using C# and Xaml? If so, can it handle all device and resolution dependencies?
I'm not quite sure what you're asking here. If the question is "Can we use phonegap to develop an app for windows 8" the answer is yes : http://docs.phonegap.com/en/edge/guide_platforms_win8_index.md.html#Windows%208%20Platform%20Guide
If you're question is "can I write code for a phonegap application using C#" the answer is no. The whole point of phonegap is that it allows you to write applications for various different platforms in HTML and Javascript.

iOS App Settings/Preferences in Worklight

I am working on a Hybrid Application, targeting (for the moment) iOS. Does Worklight have a utility to handle application settings/preferences for iOS? I know how to write the native code to do this, but do not yet know how to gain access to the application settings from the JavaScript. Can anyone point me in the right direction or provide a working example?
In application-descriptor.xml, there is a worklightSettings flag you can set, however the settings page it creates is not user facing. That is, it is meant only for development time, or internal usage, and not production. It allows control of the server address that athe client connects to and change the web resources it will fetch.
So the answer is, no.
The mentioned settings page has set items in it that cannot be altered much (settings.bundle which does not allow much room for play. Maybe you could change it a bit, but doing so would void giving support to you if problems arise). I would recommend against doing so.
So this leaves you the option of creating this on your own. Maybe there is an existing Cordova plug-in that does something similar. Review these training modules of how to incorporate Cordova plug-ins to your application. Cordova bridges between JavaScript to native code, so it could be what you're looking for.

Does anyone know of a QR Code Reader library for a Windows 8 Metro App?

We're looking to read some QR codes in a Windows 8 Metro app. .NET libraries we've used in the past can't be referenced in WinRT/Metro and porting them won't be easy because they depend on System.Drawing which isn't in the .NET for Metro style apps. We looked at this by Benjamin Soulier but it didn't seem to work. Any other suggestions or something easy we're missing?
Thanks
You can use ZXing.Net:
http://zxingnet.codeplex.com/
For Metro apps based upon HTML5/Javascript I'm currently working on a port of zxing.net for Windows Runtime Components WinMD. You can get the source from here
https://zxingnet.svn.codeplex.com/svn/branches/WINMD
(btw. I'm the creator of ZXing.Net (a port of the java based ZXing))
Based on feedback from MS resources, there is nothing built in and no frameworks they were aware of yet.
Quick way to try is by using Esponce web service. Make a simple HTTP POST request to http://www.esponce.com/api/v3/decode?format=png and send image data in body. Response should contain something like that:
{"content":"here goes content decoded from QR Code"}
Web services are platform-independent (easy to port) and lightweight on client side.
More details in Esponce API documentation

How to implement plugin feature in Objective-C (iOS5)

I'm developing a library for iOS, named PhotoSubmitter, to facilitate the development of photo upload application.
PhotoSubmitter
This library can upload photo to Social Network Services and Cloud Services, there are lots of Services to support remaining.
And I want to the library to be plaggable.
I wish to know how to implement plaggable feature in Objective-C.
Plaggable means, when third-party service implementation for PhotoSubmitter is placed in the appropriate directory, like under plugins, the library automatically detect it.
If FacebookPhotoSubmitter.h/m placed in the plugins directory, code will be like,
[[PhotoSubmitterFactory sharedInstance] enableService:#"Facebook"];
And this code to be work properly with out including header "FacebookPhotoSubmitter.h" in both Client code and PhotoSubmitter library code.
If you know any of the similar implementation, please point the repository.
Any helps appreciated.
Thanks.
I think this post will be incredible helpful. (Mac OS X)
For iOS you can't dynamically load code on a AppStore app.