[Solved] Whats the most restricted Content-Security-Policy to enable facebook connect

This is the minimum requirements that worked for me, to use facebook connect from ionic / cordova. Big thanks for @luschn for guidance and assistant to debug it properly. <meta http-equiv=”Content-Security-Policy” content=”style-src ‘self’ ‘unsafe-inline’; script-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval’ http://localhost https://connect.facebook.net; connect-src ‘self’ https://*.mydomain.com <!– Replace with your own domain–> https://*.facebook.net ws: wss:; “> solved Whats … Read more

[Solved] history.back() not working in phonegap ios build

Yes, exactly. In several version iOS, Android ( old), history.back() seem not working. To fix it, you should try this code ( i find it in JQM @@ and it working well for all ) var nav = window.navigator; if( this.phonegapNavigationEnabled && nav && nav.app && nav.app.backHistory ){ nav.app.backHistory(); } else { window.history.back(); } solved … Read more

[Solved] Compining ios native with phonegap [closed]

Take a look at Embedding Cordova WebView on iOS. I haven’t done this but it says you can use Cordova as a component in your project, so you can call up the webview at any point you want, instead of using it as the whole app. solved Compining ios native with phonegap [closed]

[Solved] Worklight 6.1 – Barcode Scanner Plugin

Yaniv thanks. The problem was in CaptureActivity library. After importing “Existing Android Code Into Workspace”, I should BUILD the project library. Then it create a directory – “D:\Users\MyUser\workspaceNew\CaptureActivity\bin\” with “captureactivity.jar” file in it. Thanks! solved Worklight 6.1 – Barcode Scanner Plugin

[Solved] Get latlng and draw a polyline between that two latlng

/*This is script*/ var x=0; var map; var prepath; var path = null; var current_lat = 28.6667; var current_lng = 77.2167; function initialize() { var myLatLng = new google.maps.LatLng(28.6667, 77.2167); var mapOptions = { zoom: 3, center: myLatLng, mapTypeId: google.maps.MapTypeId.TERRAIN }; map = new google.maps.Map(document.getElementById(‘map-canvas’), mapOptions); //alert(“sdf”) google.maps.event.addListener(map, “click”, function (e) { //delete old //alert(“sdf123”) … Read more

[Solved] Need help compiling this java source [closed]

I was able to run the project: File->Import…->Existing Projects into Workspace Project has invalid settings – source folders are wrong. To fix that, right click on the project->Properties->Java Build Path->Source-> add src, remove src/main and src/test To run, right click on Main class->Run As->Java Application To export to jar, right click on project->Export…->Runnable JAR file … Read more

[Solved] Fatal Error in Android program

Just replace: android:name=”com.crud.crupappone.CrudActivity” to android:name=”com.crud.crudappone.CrudActivity” in your manifest file inside activity tag, and then see the magic. 5 solved Fatal Error in Android program