-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync with Anki iOS app #63
base: master
Are you sure you want to change the base?
Conversation
Tested with the latest iOS client (20028.3) on iOS 10
Tested with the latest iOS client (20028.3) on iOS 10, Apache/2.4.23 (Debian)
1. Generate a self-signed CA, import it to your iOS device (warning: this may break the original CA security system, keep your CA key carefuly) | ||
2. Sign a cert with -subj "/CN=sync.ankiweb.net", config your apache/nginx server to proxy anki-sync-server with this cert | ||
3. Change your router's config (hosts), point sync.ankiweb.net to your server | ||
4. Then you should be able to sync with your personal sync server! But it will only be usable under your own wifi, or you can setup a VPN as a workaround |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Editing /etc/hosts
on a jailbroken device might work as well, that way it would be per-device, not per-network. Note that I can't test if it actually works, since I don't have an iOS device.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Theoretically this will work too, this is the best way to implement on the jailbroken device. I don't have the environment to test it ether :(
But there still are some ways to implement on the non-jailbroken device: with new NetworkExtension in iOS 9.
With some custom VPN apps using NE (like Potatso, those apps are actually developped for Chinese to bypass thier firewall...), it is possible to define DNS server and/or hosts on non-jailbroken devices and keep network traffic go through as is.
I personally play in this way, it's very tricky though...... :)
Few days later, with many changes to my decks, I tried to debug the problem about media sync, it works well...... |
Shouldn't the 5th list item be removed then? |
The problem seems still exist :(
From captured packages: (not the same session as the one above)
|
It still has some problems in media sync with iOS app, app will crash after "/msync/begin", I'm not familiar with iOS develop and don't have time to play with it.
But anyway, it gets to work. :)