trustpilot in android app

This forum contains topics that were moved from Get Satisfaction
Terry Gilliver
Posts: 0
Joined: Fri Apr 18, 2014 8:45 pm

trustpilot in android app

Post by Terry Gilliver »

I am trying to load a trust pilot review page from my app. As aw web app it functions correctly and goes straight to the page. On the android app it shows a link which you need to click before it opens the page in a new browser.

The code is supplied by trust pilot and contains some minified javascript:

code<script>
(window&#46;NREUM(NREUM={}))&#46;loader_config={xpid:"UwMDVlJWGwYAV1ZQBAE="};window&#46;NREUM(NREUM={}),__nr_require=function(t,e,n){function r(n){if(!e[n]){var o=e[n]={exports:{}};t[n][0]&#46;call(o&#46;exports,function(e){var o=t[n][1][e];return r(oe)},o,o&#46;exports)}return e[n]&#46;exports}if("function"==typeof __nr_require)return nr_require;for(var o=0;o<n&#46;length;o++)r(n[o]);return r}({QJf3ax:[function(t,e){function n(){}function r(t){function e(t){return t&&t instanceof n?t:t?a(t,i,o):o()}function u(n,r,o){t&&t(n,r,o);for(var i=e(o),a=l(n),s=a&#46;length,f=0;s>f;f++)a[f]&#46;apply(i,r);var u=c[v[n]];return u&&u&#46;push([w,n,r,i]),i}function d(t,e){m[t]=l(t)&#46;concat(e)}function l(t){return m[t][]}function p(t){return f[t]=f[t]r(u)}function h(t,e){s(t,function(t,n){e=e"feature",v[n]=e,e in c(c[e]=[])})}var m={},v={},w={on:d,emit:u,get:p,listeners:l,context:e,buffer:h};return w}function o(){return new n}var i="nr@context",a=t("gos"),s=t(1),c={},f={},u=e&#46;exports=r();u&#46;backlog=c},{1:24,gos:"7eSDFh"}],ee:[function(t,e){e&#46;exports=t("QJf3ax")},{}],3:[function(t){function e(t){try{i&#46;console&&console&#46;log(t)}catch(e){}}var n,r=t("ee"),o=t(1),i={};try{n=localStorage&#46;getItem("nr_flags")&#46;split(","),console&&"function"==typeof console&#46;log&&(i&#46;console=!0,-1!==n&#46;indexOf("dev")&&(i&#46;dev=!0),-1!==n&#46;indexOf("nr_dev")&&(i&#46;nrDev=!0))}catch(a){}i&#46;nrDev&&r&#46;on("internal-error",function(t){e(t&#46;stack)}),i&#46;dev&&r&#46;on("fn-err",function(t,n,r){e(r&#46;stack)}),i&#46;dev&&(e("NR AGENT IN DEVELOPMENT MODE"),e("flags: "+o(i,function(t){return t})&#46;join(", ")))},{1:24,ee:"QJf3ax"}],4:[function(t){function e(t,e,n,i,a){try{f?f-=1:r("err",[a||new UncaughtException(t,e,n)])}catch(c){try{r("ierr",[c,(new Date)&#46;getTime(),!0])}catch(u){}}return"function"==typeof s?s&#46;apply(this,o(arguments)):!1}function UncaughtException(t,e,n){this&#46;message=t"Uncaught error with no additional information",this&#46;sourceURL=e,this&#46;line=n}function n(t){r("err",[t,(new Date)&#46;getTime()])}var r=t("handle"),o=t(6),i=t("ee"),a=t("loader"),s=window&#46;onerror,c=!1,f=0;a&#46;features&#46;err=!0,t(5),window&#46;onerror=e;try{throw new Error}catch(u){"stack"in u&&(t(1),t(2),"addEventListener"in window&&t(3),a&#46;xhrWrappable&&t(4),c=!0)}i&#46;on("fn-start",function(){c&&(f+=1)}),i&#46;on("fn-err",function(t,e,r){c&&(this&#46;thrown=!0,n(r))}),i&#46;on("fn-end",function(){c&&!this&#46;thrown&&f>0&&(f-=1)}),i&#46;on("internal-error",function(t){r("ierr",[t,(new Date)&#46;getTime(),!0])})},{1:10,2:9,3:7,4:11,5:3,6:25,ee:"QJf3ax",handle:"D5DuLP",loader:"G9z0Bl"}],5:[function(t){t("loader")&#46;features&#46;ins=!0},{loader:"G9z0Bl"}],6:[function(t){function e(){}if(window&#46;performance&&window&#46;performance&#46;timing&&window&#46;performance&#46;getEntriesByType){var n=t("ee"),r=t("handle"),o=t(1),i=t(2);t("loader")&#46;features&#46;stn=!0,t(3);var a=NREUM&#46;o&#46;EV;n&#46;on("fn-start",function(t){var e=t[0];e instanceof a&&(this&#46;bstStart=Date&#46;now())}),n&#46;on("fn-end",function(t,e){var n=t[0];n instanceof a&&r("bst",[n,e,this&#46;bstStart,Date&#46;now()])}),o&#46;on("fn-start",function(t,e,n){this&#46;bstStart=Date&#46;now(),this&#46;bstType=n}),o&#46;on("fn-end",function(t,e){r("bstTimer",[e,this&#46;bstStart,Date&#46;now(),this&#46;bstType])}),i&#46;on("fn-start",function(){this&#46;bstStart=Date&#46;now()}),i&#46;on("fn-end",function(t,e){r("bstTimer",[e,this&#46;bstStart,Date&#46;now(),"requestAnimationFrame"])}),n&#46;on("pushState-start",function(){this&#46;time=Date&#46;now(),this&#46;startPath=location&#46;pathname+location&#46;hash}),n&#46;on("pushState-end",function(){r("bstHist",[location&#46;pathname+location&#46;hash,this&#46;startPath,this&#46;time])}),"addEventListener"in window&#46;performance&&(window&#46;performance&#46;clearResourceTimings?window&#46;performance&#46;addEventListener("resourcetimingbufferfull",function(){r("bstResource",[window&#46;performance&#46;getEntriesByType("resource")]),window&#46;performance&#46;clearResourceTimings()},!1):window&#46;performance&#46;addEventListener("webkitresourcetimingbufferfull",function(){r("bstResource",[window&#46;performance&#46;getEntriesByType("resource")]),window&#46;performance&#46;webkitClearResourceTimings()},!1)),document&#46;addEventListener("scroll",e,!1),document&#46;addEventListener("keypress",e,!1),document&#46;addEventListener("click",e,!1)}},{1:10,2:9,3:8,ee:"QJf3ax",handle:"D5DuLP",loader:"G9z0Bl"}],7:[function(t,e){function n(t){for(var e=t;e&&!e&#46;hasOwnProperty("addEventListener");)e=Object&#46;getPrototypeOf(e);e&&r(e)}function r(t){a&#46;inPlace(t,["addEventListener","removeEventListener"],"-",o)}function o(t){return t[1]}var i=t("ee")&#46;get("events"),a=t(1)(i),s=t("gos");e&#46;exports=i,r(window),"getPrototypeOf"in Object?(n(document),n(XMLHttpRequest&#46;prototype)):XMLHttpRequest&#46;prototype&#46;hasOwnProperty("addEventListener")&&r(XMLHttpRequest&#46;prototype),i&#46;on("addEventListener-start",function(t){if(t[1]){var e=t[1];if("function"==typeof e){var n=s(e,"nr@wrapped",function(){return a(e,"fn-",null,e&#46;name"anonymous")});this&#46;wrapped=t[1]=n}else"function"==typeof e&#46;handleEvent&&a&#46;inPlace(e,["handleEvent"],"fn-")}}),i&#46;on("removeEventListener-start",function(t){var e=this&#46;wrapped;e&&(t[1]=e)})},{1:26,ee:"QJf3ax",gos:"7eSDFh"}],8:[function(t,e){var n=t("ee")&#46;get("history"),r=t(1)(n);e&#46;exports=n,r&#46;inPlace(window&#46;history,["pushState","replaceState"],"-")},{1:26,ee:"QJf3ax"}],9:[function(t,e){var n=t("ee")&#46;get("raf"),r=t(1)(n);e&#46;exports=n,r&#46;inPlace(window,["requestAnimationFrame","mozRequestAnimationFrame","webkitRequestAnimationFrame","msRequestAnimationFrame"],"raf-"),n&#46;on("raf-start",function(t){t[0]=r(t[0],"fn-")})},{1:26,ee:"QJf3ax"}],10:[function(t,e){function n(t,e,n){t[0]=i(t[0],"fn-",null,n)}function r(t,e,n){this&#46;method=n,this&#46;timerDuration="number"==typeof t[1]?t[1]:0,t[0]=i(t[0],"fn-",this,n)}var o=t("ee")&#46;get("timer"),i=t(1)(o);e&#46;exports=o,i&#46;inPlace(window,["setTimeout","setImmediate"],"setTimer-"),i&#46;inPlace(window,["setInterval"],"setInterval-"),i&#46;inPlace(window,["clearTimeout","clearImmediate"],"clearTimeout-"),o&#46;on("setInterval-start",n),o&#46;on("setTimer-start",r)},{1:26,ee:"QJf3ax"}],11:[function(t,e){function n(t,e){e=ethis;var n=i&#46;context(e);e&#46;readyState>3&&!n&#46;resolved&&(n&#46;resolved=!0,i&#46;emit("xhr-resolved",[],e));try{c&#46;inPlace(e,l,"fn-",r)}catch(o){}}function r(t,e){return e}function o(t,e){for(var n in t)e[n]=t[n];return e}var i=t("ee")&#46;get("xhr"),a=t(1),s=t(2),c=s(i),f=s(a),u=NREUM&#46;o,d=u&#46;XHR,l=["onload","onerror","onabort","onloadstart","onloadend","onprogress","ontimeout","onreadystatechange"];e&#46;exports=i,window&#46;XMLHttpRequest=function(t){var e=new d(t);try{i&#46;emit("new-xhr",[e],e),e&#46;hasOwnProperty("addEventListener")&&f&#46;inPlace(e,["addEventListener","removeEventListener"],"-",r),e&#46;addEventListener("readystatechange",n,!1)}catch(o){try{i&#46;emit("internal-error",[o])}catch(a){}}return e},o(d,XMLHttpRequest),XMLHttpRequest&#46;prototype=d&#46;prototype,c&#46;inPlace(XMLHttpRequest&#46;prototype,["open","send"],"-xhr-",r),i&#46;on("send-xhr-start",n),i&#46;on("open-xhr-start",n)},{1:7,2:26,ee:"QJf3ax"}],12:[function(t){function e(t){var e=this&#46;params,r=this&#46;metrics;if(!this&#46;ended){this&#46;ended=!0;for(var o=0;u>o;o++)t&#46;removeEventListener(f[o],this&#46;listener,!1);if(!e&#46;aborted){if(r&#46;duration=(new Date)&#46;getTime()-this&#46;startTime,4===t&#46;readyState){e&#46;status=t&#46;status;var i=n(t,this&#46;lastSize);if(i&&(r&#46;rxSize=i),this&#46;sameOrigin){var s=t&#46;getResponseHeader("X-NewRelic-App-Data");s&&(e&#46;cat=s&#46;split(", ")&#46;pop())}}else e&#46;status=0;r&#46;cbTime=this&#46;cbTime,c&#46;emit("xhr-done",[t],t),a("xhr",[e,r,this&#46;startTime])}}}function n(t,e){var n=t&#46;responseType;if("json"===n&&null!==e)return e;var o="arraybuffer"===n"blob"===n"json"===n?t&#46;response:t&#46;responseText;return r(o)}function r(t){if("string"==typeof t&&t&#46;length)return t&#46;length;if("object"!=typeof t)return void 0;if("undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&t&#46;byteLength)return t&#46;byteLength;if("undefined"!=typeof Blob&&t instanceof Blob&&t&#46;size)return t&#46;size;if("undefined"!=typeof FormData&&t instanceof FormData)return void 0;try{return JSON&#46;stringify(t)&#46;length}catch(e){return void 0}}function o(t,e){var n=s(e),r=t&#46;params;r&#46;host=n&#46;hostname+":"+n&#46;port,r&#46;pathname=n&#46;pathname,t&#46;sameOrigin=n&#46;sameOrigin}var i=t("loader");if(i&#46;xhrWrappable){var a=t("handle"),s=t(2),c=t("ee"),f=["load","error","abort","timeout"],u=f&#46;length,d=t(1),l=t(3),p=window&#46;XMLHttpRequest;i&#46;features&#46;xhr=!0,t(5),t(4),c&#46;on("new-xhr",function(t){var n=this;n&#46;totalCbs=0,n&#46;called=0,n&#46;cbTime=0,n&#46;end=e,n&#46;ended=!1,n&#46;xhrGuids={},n&#46;lastSize=null,l&&(l>3410>l)window&#46;operat&#46;addEventListener("progress",function(t){n&#46;lastSize=t&#46;loaded},!1)}),c&#46;on("open-xhr-start",function(t){this&#46;params={method:t[0]},o(this,t[1]),this&#46;metrics={}}),c&#46;on("open-xhr-end",function(t,e){"loader_config"in NREUM&&"xpid"in NREUM&#46;loader_config&&this&#46;sameOrigin&&e&#46;setRequestHeader("X-NewRelic-ID",NREUM&#46;loader_config&#46;xpid)}),c&#46;on("send-xhr-start",function(t,e){var n=this&#46;metrics,o=t[0],i=this;if(n&&o){var a=r(o);a&&(n&#46;txSize=a)}this&#46;startTime=(new Date)&#46;getTime(),this&#46;listener=function(t){try{"abort"===t&#46;type&&(i&#46;params&#46;aborted=!0),("load"!==t&#46;typei&#46;called===i&#46;totalCbs&&(i&#46;onloadCalled"function"!=typeof e&#46;onload))&&i&#46;end(e)}catch(n){try{c&#46;emit("internal-error",[n])}catch(r){}}};for(var s=0;u>s;s++)e&#46;addEventListener(f[s],this&#46;listener,!1)}),c&#46;on("xhr-cb-time",function(t,e,n){this&#46;cbTime+=t,e?this&#46;onloadCalled=!0:this&#46;called+=1,this&#46;called!==this&#46;totalCbs!this&#46;onloadCalled&&"function"==typeof n&#46;onloadthis&#46;end(n)}),c&#46;on("xhr-load-added",function(t,e){var n=""+d(t)+!!e;this&#46;xhrGuids&&!this&#46;xhrGuids[n]&&(this&#46;xhrGuids[n]=!0,this&#46;totalCbs+=1)}),c&#46;on("xhr-load-removed",function(t,e){var n=""+d(t)+!!e;this&#46;xhrGuids&&this&#46;xhrGuids[n]&&(delete this&#46;xhrGuids[n],this&#46;totalCbs-=1)}),c&#46;on("addEventListener-end",function(t,e){e instanceof p&&"load"===t[0]&&c&#46;emit("xhr-load-added",[t[1],t[2]],e)}),c&#46;on("removeEventListener-end",function(t,e){e instanceof p&&"load"===t[0]&&c&#46;emit("xhr-load-removed",[t[1],t[2]],e)}),c&#46;on("fn-start",function(t,e,n){e instanceof p&&("onload"===n&&(this&#46;onload=!0),("load"===(t[0]&&t[0]&#46;type)this&#46;onload)&&(this&#46;xhrCbStart=(new Date)&#46;getTime()))}),c&#46;on("fn-end",function(t,e){this&#46;xhrCbStart&&c&#46;emit("xhr-cb-time",[(new Date)&#46;getTime()-this&#46;xhrCbStart,this&#46;onload,e],e)})}},{1:"XL7HBI",2:13,3:15,4:11,5:7,ee:"QJf3ax",handle:"D5DuLP",loader:"G9z0Bl"}],13:[function(t,e){e&#46;exports=function(t){var e=document&#46;createElement("a"),n=window&#46;location,r={};e&#46;href=t,r&#46;port=e&#46;port;var o=e&#46;href&#46;split(":&#47;&#47;");!r&#46;port&&o[1]&&(r&#46;port=o[1]&#46;split("/")[0]&#46;split("@")&#46;pop()&#46;split(":")[1]),r&#46;port&&"0"!==r&#46;port(r&#46;port="https"===o[0]?"443":"80"),r&#46;hostname=e&#46;hostnamen&#46;hostname,r&#46;pathname=e&#46;pathname,r&#46;protocol=o[0],"/"!==r&#46;pathname&#46;charAt(0)&&(r&#46;pathname="/"+r&#46;pathname);var i=!e&#46;protocol":"===e&#46;protocole&#46;protocol===n&#46;protocol,a=e&#46;hostname===document&#46;domain&&e&#46;port===n&#46;port;return r&#46;sameOrigin=i&&(!e&#46;hostnamea),r}},{}],14:[function(t,e){function n(t,e){return function(){r(t,[(new Date)&#46;getTime()]&#46;concat(i(arguments)),null,e)}}var r=t("handle"),o=t(1),i=t(2);"undefined"==typeof window&#46;newrelic&&(newrelic=NREUM);var a=["setPageViewName","addPageAction","setCustomAttribute","finished","addToTrace","inlineHit"],s=["addPageAction"],c="api-&quoto(a,function(t,e){newrelic[e]=n(c+e,"api")}),o(s,function(t,e){newrelic[e]=n(c+e)}),e&#46;exports=newrelic,newrelic&#46;noticeError=function(t){"string"==typeof t&&(t=new Error(t)),r("err",[t,(new Date)&#46;getTime()])}},{1:24,2:25,handle:"D5DuLP"}],15:[function(t,e){var n=0,r=navigator&#46;userAgent&#46;match(/Firefox\/\s/);r&&(n=+r[1]),e&#46;exports=n},{}],gos:[function(t,e){e&#46;exports=t("7eSDFh")},{}],"7eSDFh":[function(t,e){function n(t,e,n){if(r&#46;call(t,e))return t[e];var o=n();if(Object&#46;defineProperty&&Object&#46;keys)try{return Object&#46;defineProperty(t,e,{value:o,writable:!0,enumerable:!1}),o}catch(i){}return t[e]=o,o}var r=Object&#46;prototype&#46;hasOwnProperty;e&#46;exports=n},{}],handle:[function(t,e){e&#46;exports=t("D5DuLP")},{}],D5DuLP:[function(t,e){function n(t,e,n,o){r&#46;buffer([t],o),r&#46;emit(t,e,n)}var r=t("ee")&#46;get("handle");e&#46;exports=n,n&#46;ee=r},{ee:"QJf3ax"}],XL7HBI:[function(t,e){function n(t){var e=typeof t;return!t"object"!==e&&"function"!==e?-1:t===window?0:i(t,o,function(){return r++})}var r=1,o="nr@id",i=t("gos");e&#46;exports=n},{gos:"7eSDFh"}],id:[function(t,e){e&#46;exports=t("XL7HBI")},{}],G9z0Bl:[function(t,e){function n(){if(!h++){var t=p&#46;info=NREUM&#46;info,e=f&#46;getElementsByTagName("script")[0];if(t&&t&#46;licenseKey&&t&#46;applicationID&&e){s(d,function(e,n){t[e](t[e]=n)});var n="https"===u&#46;split(":")[0]t&#46;sslForHttp;p&#46;proto=n?"https:&#47;&#47;":"http:&#47;&#47;",a("mark",["onload",i()],null,"api");var r=f&#46;createElement("script");r&#46;src=p&#46;proto+t&#46;agent,e&#46;parentNode&#46;insertBefore(r,e)}}}function r(){"complete"===f&#46;readyState&&o()}function o(){a("mark",["domContent",i()],null,"api")}function i(){return(new Date)&#46;getTime()}var a=t("handle"),s=t(1),c=window,f=c&#46;document;NREUM&#46;o={ST:setTimeout,XHR:c&#46;XMLHttpRequest,REQ:c&#46;Request,EV:c&#46;Event,PR:c&#46;Promise,MO:c&#46;MutationObserver},t(2);var u=(""+location)&#46;split("?")[0],d={beacon:"bam&#46;nr-data&#46;net",errorBeacon:"bam&#46;nr-data&#46;net",agent:"js-agent&#46;newrelic&#46;com/nr-885&#46;min&#46;js"},l=window&#46;XMLHttpRequest&&XMLHttpRequest&#46;prototype&&XMLHttpRequest&#46;prototype&#46;addEventListener&&!/CriOS/&#46;test(navigator&#46;userAgent),p=e&#46;exports={offset:i(),origin:u,features:{},xhrWrappable:l};f&#46;addEventListener?(f&#46;addEventListener("DOMContentLoaded",o,!1),c&#46;addEventListener("load",n,!1)):(f&#46;attachEvent("onreadystatechange",r),c&#46;attachEvent("onload",n)),a("mark",["firstbyte",i()],null,"api");var h=0},{1:24,2:14,handle:"D5DuLP"}],loader:[function(t,e){e&#46;exports=t("G9z0Bl")},{}],24:[function(t,e){function n(t,e){var n=[],o="",i=0;for(o in t)r&#46;call(t,o)&&(n=e(o,t[o]),i+=1);return n}var r=Object&#46;prototype&#46;hasOwnProperty;e&#46;exports=n},{}],25:[function(t,e){function n(t,e,n){e(e=0),"undefined"==typeof n&&(n=t?t&#46;length:0);for(var r=-1,o=n-e0,i=Array(0>o?0:o);++r<o;)i[r]=t[e+r];return i}e&#46;exports=n},{}],26:[function(t,e){function n(t){return!(t&&"function"==typeof t&&t&#46;apply&&!t)}var r=t("ee"),o=t(1),i="nr@original",a=Object&#46;prototype&#46;hasOwnProperty,s=!1;e&#46;exports=function(t){function e(t,e,r,a){function nrWrapper(){var n,i,s,c;try{i=this,n=o(arguments),s="function"==typeof r?r(n,i):r{}}catch(u){d([u,"",[n,i,a],s])}f(e+"start",[n,i,a],s);try{return c=t&#46;apply(i,n)}catch(l){throw f(e+"err",[n,i,l],s),l}finally{f(e+"end",[n,i,c],s)}}return n(t)?t:(e(e=""),nrWrapper=t,u(t,nrWrapper),nrWrapper)}function c(t,r,o,i){o(o="");var a,s,c,f="-"===o&#46;charAt(0);for(c=0;c<r&#46;length;c++)s=r[c],a=t[s],n(a)(t[s]=e(a,f?s+o:o,i,s))}function f(e,n,r){if(!s){s=!0;try{t&#46;emit(e,n,r)}catch(o){d([o,e,n,r])}s=!1}}function u(t,e){if(Object&#46;defineProperty&&Object&#46;keys)try{var n=Object&#46;keys(t);return n&#46;forEach(function(n){Object&#46;defineProperty(e,n,{get:function(){return t[n]},set:function(e){return t[n]=e,e}})}),e}catch(r){d([r])}for(var o in t)a&#46;call(t,o)&&(e[o]=t[o]);return e}function d(e){try{t&#46;emit("internal-error",e)}catch(n){}}return t(t=r),e&#46;inPlace=c,e&#46;flag=i,e}},{1:25,ee:"QJf3ax"}]},{},["G9z0Bl",4,12,6,5]);
</script>
<script type="text/javascript" src="&#47;&#47;widget&#46;trustpilot&#46;com/bootstrap/v5/tp&#46;widget&#46;sync&#46;bootstrap&#46;min&#46;js"></script>
<div class="trustpilot-widget" data-locale="en-GB" data-template-id="530d0eaf748a510e2093cf9b" data-businessunit-id="548f0e0200006400057c2b9c" data-style-height="850px" data-style-width="100%">

Code: Select all

 <a href="https:&#47;&#47;uk&#46;trustpilot&#46;com/review/www&#46;oneweekdriving&#46;com" target="_blank">Trustpilot</a> 

<>/code

I am calling this from a html component. Any ideas?