Skip to content

Instantly share code, notes, and snippets.

@EddyVerbruggen
EddyVerbruggen / cordova-ios-3.7.0-handleopenurl-fix
Last active August 29, 2015 14:10
Cordova iOS 3.7.0 handleOpenURL coldstart fix
// I'm not saying this is the best solution, it's just a temp fix which works in my case to solve
// the issue where a passed in url is not propagated to the handleOpenURL js function upon
// coldstart on iOS Cordova 3.7.0.
// Stay tuned on this issue for a better fix: https://issues.apache.org/jira/browse/CB-7606
// replace processOpenUrl in CDVViewController.m by this:
- (void)processOpenUrl:(NSURL*)url pageLoaded:(BOOL)pageLoaded
{
NSString* readyState = [webView stringByEvaluatingJavaScriptFromString:@"document.readyState"];
@mendelgusmao
mendelgusmao / btsync
Last active March 4, 2021 15:37
init.d script for btsync (based on another script built to run dropbox)
#!/bin/sh
### BEGIN INIT INFO
# Provides: btsync
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Multi-user daemonized version of btsync.