Page 1 of 1

Mobile Detection stopped working

Posted: Fri Aug 07, 2015 6:03 am
by mbeausoleil
Hello,

We use WURFL.js on our site. It has been working for over a year. Today it has stopped and is redirecting all traffic to mobile. Any ideas?

Thanks,

Mathieu

Re: Mobile Detection stopped working

Posted: Fri Aug 07, 2015 6:06 am
by mbeausoleil
This is the simple code in the header:

Code: Select all

<script type='text/javascript' src="//wurfl.io/wurfl.js"></script>
	<script type="text/javascript">
        if (WURFL.is_mobile){
			if (WURFL.form_factor != 'Tablet'){
           		      window.location.replace('/mobile');
			}
        }

Re: Mobile Detection stopped working

Posted: Fri Aug 07, 2015 8:02 am
by awebs
We're experiencing the same issue.

I would also add that even on the WURFL.io homepage, for the example shown, I am seeing "Ad targeting mobile devices" even though I'm viewing on my desktop machine.

The object being returned is correct. For example, for my machine:
{"is_mobile":"false","complete_device_name":"Google Chrome","form_factor":"Desktop"}

But something appears to be wrong because if(WURFL.is_mobile) is coming back TRUE even though the object shows it as false.

Re: Mobile Detection stopped working

Posted: Fri Aug 07, 2015 8:23 am
by mbeausoleil
That is correct. In testing it returns proper variables however the processing engine isn't taking into account that it returns 'false'

Re: Mobile Detection stopped working

Posted: Fri Aug 07, 2015 9:01 am
by Elliotfehr
Hello,

We did experience an issue that caused the `is_mobile` capability to return "true" or "false" as opposed to a boolean value. This has since been corrected and you should no longer see this capability returning a string value. I apologize for the inconvenience.

Thank you,

Elliot

Re: Mobile Detection stopped working

Posted: Fri Aug 07, 2015 9:28 am
by mbeausoleil
Yes it seems to be working properly now.

Is this something that may occur again? I'm not sure how the boolean variable switched?

Re: Mobile Detection stopped working

Posted: Fri Aug 07, 2015 10:00 am
by Elliotfehr
Hello,

We have taken the necessary precautions to prevent this issue from occurring in the future.

Thank you,

Elliot