Can I use Z-push in my web-application? - php

I have a website that acts as a calendar manager amongst other things.
Now, some of the users need to sync some calendar events to an MDaemon server, while others need Exchange Online sync.
I already have developed an EWS and a CalDav connector, but non of these seem to work with MDaemon.
Do you know if there's some kind of library or protocol I can use for this?
Is ActiveSync an option?
Thank you

Related

Server chat application

I need for a project to build a live chat with:
group chat room
private chat (user-user);
web site interface;
mobile interface;
others information (profile etc).
I want to start obviously from the server: any PHP framework or tutorial to do this ?
Otherwise, any full-solution (but customizable) with web site + mobile compatible ?
Use XMPP Server (XMPP server uses Socket programming, so once a connection will be establish, then it uses that connection each and everytime, you no need to create connection everytime, like HTTP).
Or Use GCM (Using Push Notification you can send and receive messages as well).
Here are some Source Code - Github
Source from google
Hope it helps.
http://vidorsolutions.blogspot.pt/2011/01/writing-xmppjabber-chat-application-for.html
This would be the best place to start!
Have fun building the app!
Also if you really want to get deep into it, Xabber source code will prove of great help.
XMPP is a communication protocol for message-oriented middleware based on XML (Extensible Markup Language). In plain words it is a protocol used for instant messaging.
While APNS and GCM are services used to set up push notifications for your apps.
So, it's a bit different.
I believe building a chat app from scratch is not an easy task for you.
So, I'd recommend using a ready backend and concentrate on client-side implementation of your app.
For backend you need to choose a provider with the set of features most suitable for your project and then start app development with the API provided by your backend provider. You might find this article useful when choosing.
It seems you are looking to get going fast on your chat implementation...the xmpp implementation is one way. Firebase provides another. Having implemented messaging via xmpp as well as firebase, I can offer up this tip: stable connectivity and auto-reconnect logic in an openfire+SMACK implementation is not particularly reliable. I have had recurring troubles maintaining connection in the face of drop offs; updates in Openfire that may or may not conform to the older SMACK library versions are not helpful (no one guarantees for conformity - you are on your own). Others with more xmpp-based experience may attest to these difficulties. Firebase is not without its own challenges but I found them manageable. I also recommend you checkout at least one opensource chat library implementation via firebase (github link being one such). With firebase the connectivity issue largely goes away and a host of new options open up. I prefer if the backend is fully taken care of by the library provider so we only need to focus on UI. Hope this is helpful.

Create web service for notification purpose?

I have built an ecommerce website in CakePHP and MySQL which takes orders and stores them in db. I've been told that I need to create a web service for sending notification to desktop/via email which would alert us of any order given instantly and would also provide us with order details. Do i need to study up on web services, SOAP, GET POST etc. or can I do it with some easier method? What would be a secure and fast response way of receiving such a notification from the web application? Thanks in advance :)
A webservice would be useful the other way round. If a third-party entity wishes to access your website as a service without accessing HTML pages, yes in that case, creating a webservice on your end will be useful.
I recommend you for instance to see the RESTful webservice interface to stackoverflow/stackexchange itself to understand this concept: https://api.stackexchange.com/docs.
In your case, I can't see how webservices would be involved. If you just need to send emails from your website, it can be done directly with the PHP mail() function, or using a mailer like PHPMailer.
Desktop notifications are an entirely different matter, because you need a client software.
I haven't dug pretty far in that topic myself, but here are a few pointers:
A popular Desktop Notification software for MacOSX is Growl which has been unofficially ported to Windows: http://www.growlforwindows.com/gfw/
There is a PHP API to send messages to Growl clients: http://clickontyler.com/php-growl/.

How does linkedin import contacts from outlook?

Linkedin has a feature that allows users to enter their outlook credentials and imports their outlook contacts.
I am trying to emulate this functionality, in a php application.
So far, the only way I have discovered on how this might be done is through Exchange web Services. https://emailhost/EWS/Services.wsdl I am using the php-ews library to try and connect to ews.
I was hoping for some sort of information on a defacto way to retrieve contacts given a users credentials, but have been unable to find much information on this at all.
Are there any other ways that this could be accomplished other than EWS? Does anyone know how linkedin is doing this?
Given that this feature works for a random end user, I don't think LinkedIn connects to Exchange (through EWS or any other API), but to the Outlook instance on the users' machine.
Accessing Outlook objects on a local machine can be done in any programming language through old-fashioned OLE automation. This will also let LinkedIn retrieve contacts for accounts connected to other servers, like e.g. Lotus Notes. (Although I cannot confirm that LI actually does that).

Website sync of contacts and reminders with iCloud

I'm building custom CRM web based system and have integrated synchronization of contacts and reminders with Google apps and need do the same with Apple iCloud. Is there any way how to do it? I haven't find any official API for this purpose, CRM is written in PHP, but I'm able to use python for this purpose as well.
To the best of my knowledge, there is no way to interface with iCloud directly; it can only be done through an iOS or Mac OS app, and by calling the correct iCloud Objective-C APIs with UI/NSDocument classes. Since you are not using Cocoa, let alone Objective-C, you will most likely not be able to do this. I may be wrong of course, as I haven't conducted an in-depth search into this.
I would recommend that you sync using the google contacts api. Then, you can tell iPhone people to use that instead of iCloud.
I agree with the first and second answer since I too haven't found any solution to access a large portion of the iCloud data via PHP. It seems the best solution would be to make an mobile app to do most of the work. This may save a lot of time in fact.
However if you can get your users to install an app then make your own cloud. There is an open source software like: own Cloud link below that is very good at it.
https://owncloud.org/
You may want to take a look at this project: https://github.com/adammck/ruby-icloud . It accesses iCloud reminders using Ruby.

How to sync my own calendar with my phone (iPhone, Android, etc)

I created a portal for my company.
In this portal, we have to login and once we are in, we can manage our calendars and events. I would like to know how I can sync this with the iOS and/or the Android ?
Do I need to create an app for it or I can create a module so I can add a protocol to my website ? Google Calendar can sync with the iPhone, he must use a sort of protocol or it is build-in ?
Any ideas ? Thanks
You have a couple options. The simplest would probably be to add support for the Internet Calendar Format (.ics) and build your calendar to support subscriptions. Android and iOS both support internet calendars. Here's the Wikipedia page for ics. It's definitely not enough to implement a connector for, but it should be a good place to get started.

Categories