iPhone / iOS CardDav not working, CaldDav works

Ask all your questions regarding OC 5.x Please read the Support Forum Rules
Forum rules
ownCloud 5.x reached end of life and is officially unsupported. For details see Wiki page.

Please upgrade your ownCloud.
User avatar
tanghus
Starter
Posts: 80
Joined: Sat Jan 21, 2012 6:14 pm

Re: iPhone / iOS CardDav not working, CaldDav works

Postby tanghus » Thu Feb 09, 2012 12:03 am

Zakoon wrote:Hi tanghus, you can add to the guide, that evolution needs a slash at the end. But only for the contacts, not for the calendars.


Thanks Zakoon. The syncing guide has been reorganized and is now located at:

http://owncloud.org/support/usage/synchronization/

As it might be obvious to see, I only have had the chance to test with Kontact, so all input and screenshots which can be used for documentation are most welcome welcome.

JavaJim
Newbie
Posts: 1
Joined: Thu Feb 09, 2012 1:58 am

Re: iPhone / iOS CardDav not working, CaldDav works

Postby JavaJim » Thu Feb 09, 2012 2:04 am

Hi All,
I managed to get my IPhone 3GS (IOS 4.3.3) to sync the contacts from ownCloud.

You need to have a rewrite rule like this to get it to work:

url.redirect = (
"^/.well-known/carddav" => "/<path-to-owncloud>/apps/contacts/carddav.php",
)

Make sure to modify the target path to match your setup.
This one is for lighttpd, but something similar shall work for Apache, too.

At least with this IOS version the carddav client always sends a request to /.well-known/carddav before anything else and if this fails (404) it will not go any further. This happens everytime, it does not matter what you type into the server field in the settings dialog.

HTH,
Rolf

User avatar
tanghus
Starter
Posts: 80
Joined: Sat Jan 21, 2012 6:14 pm

Re: iPhone / iOS CardDav not working, CaldDav works

Postby tanghus » Thu Feb 09, 2012 10:09 am

Thanks Rolf, that is a great tip.

wutzelputz
Newbie
Posts: 2
Joined: Wed Feb 08, 2012 4:08 pm

Re: iPhone / iOS CardDav not working, CaldDav works

Postby wutzelputz » Thu Feb 09, 2012 3:41 pm

Thank you so badly Rolf!

I used this snippet in my apache configuration and it works!

Redirect /.well-known/carddav http://owncloudurl/apps/contacts/carddav.php

it would be great if this could be added to the support page :)

User avatar
tanghus
Starter
Posts: 80
Joined: Sat Jan 21, 2012 6:14 pm

Re: iPhone / iOS CardDav not working, CaldDav works

Postby tanghus » Fri Feb 10, 2012 5:54 pm

Thanks for the great info. I've added them to an issue at http://bugs.owncloud.org/thebuggenie/ow ... ues/oc-232 and linked to this post at http://owncloud.org/support/usage/synchronization/ios/

Hopefully SomeOne™ will add it to the installation process ;-)

doc75
Newbie
Posts: 2
Joined: Sun Feb 05, 2012 10:44 pm

Re: iPhone / iOS CardDav not working, CaldDav works

Postby doc75 » Sun Feb 12, 2012 11:53 am

Hello,

@Archness & @Born_in_1971, thanks for your answers.
I was using the latest development version since I was not able to make it work with current master version and that I saw some bugs might have been fixed in dev version.

Indeed I found out that I made a mistake in my Apache site configuration. Actually I copied the content of .htaccess provided by Owncloud itself and put them in the Apache site definition (better security according to me than .htaccess when you can do it). And I made a typo mistake in the "apps_user_webfinger" directory name which I guess was preventing the contact to sync with an iPhone.

carol
Newbie
Posts: 5
Joined: Thu Mar 08, 2012 1:14 pm

Re: iPhone / iOS CardDav not working, CaldDav works

Postby carol » Tue Mar 20, 2012 2:19 pm

hello,
i'm trying to run as well the carddav on my ipad and iphone.
the owncloud is working fine with my os-x addressbook (carddav) and the caldav is doing the job on the phone and the macbook as well.
i'm on a shared host (dreamhost.com)
and my phone and the ipad is not able to connect over the carddav.
can i write the redirec:
url.redirect = (
"^/.well-known/carddav" => "/<path-to-owncloud>/apps/contacts/carddav.php",
)
in the .htaccess?

thanks for any help
carol

cko
Newbie
Posts: 1
Joined: Tue Mar 27, 2012 1:02 pm

Re: iPhone / iOS CardDav not working, CaldDav works

Postby cko » Tue Mar 27, 2012 1:15 pm

I am a total newbee to apache configuration,
so I was not sure where to put the suggested code.

I ended up adding the line

Redirect /.well-known/carddav http://chieftec/owncloud/apps/contacts/carddav.php

to the file

/etc/apache2/httpd.conf

This works here under OpenSuse 12.1, at least I can access the owncloud
address book now from my iPhone 3G with iOS 4.2.1.

helicopterjeff
Beginner
Posts: 22
Joined: Wed Apr 04, 2012 2:55 pm

Re: iPhone / iOS CardDav not working, CaldDav works

Postby helicopterjeff » Thu May 03, 2012 6:26 pm

I put the following in my .htaccess file in the root of owncloud and my new ipad was able to "authenticate".

Redirect /.well-known/carddav http://owncloud:7071/owncloud/apps/contacts/carddav.php

in my case i'm on a different port but that didn't make a difference.

Also on the ipad configuration page I had to remove the http:// from the server address. not sure why that mattered.

ukr
Newbie
Posts: 1
Joined: Sat May 05, 2012 1:58 pm

Re: iPhone / iOS CardDav not working, CaldDav works

Postby ukr » Sat May 05, 2012 2:05 pm

Hello,

I've had some problems connecting to the calendar and contacts with both osx and ios - turned out that the reason was a username with a blank - could be a problem with the current version, since others have reported problems with special characters in filenames? Anyway, after creating a new user with a "short" username, everything works...

BTW, is there a way to rename users?


  • Similar Topics
    Replies
    Views
    Last post

Return to “ownCloud Community Edition 5.x and older”

Who is online

Users browsing this forum: No registered users and 1 guest