I am developing a plugin for a user of your plugin but it seems to be conflicting with the re-direct functionality (i.e. mobile users are not being redirected) which uses a PHP header('Location: http://www.example.com') redirect.
I am using the 'template_redirect' action hook (have also tried the wp_head hook) but it doesn't work when your plugin is activated.
Could you advise where might be a better place (or action hook) to run the redirect code so that the plugin can redirect to another site before your plugin kicks in?
I can send you my plugin if if helps.
Here's the hook I am using:
add_action('template_redirect', 'redirect_user', 0 );