Closed yuta-take closed 7 years ago
execute is complete. but my application is missing cordova.callbackFromNative.
cordova.callbackFromNative('CordovaHttpPlugin1754534213',true,1,[{"headers":{"Cache-Control":"private","Expires":"Sun,09` Jul 2017 08:36:49 GMT","X-Android-Selected-Protocol":"http\/1.1","Set-Cookie":"NID=10=EwElH-dWANegWP9adh-Idu2ipfR-6; expires=Mon, 08-Jan-2018 08:36:49 GMT; path=\/; domain=.google.co.jp; HttpOnly","X-Android-Response-Source":"NETWORK 200","X-Android-Sent-Millis":"1499586145305","Content-Type":"text\/html; charset=Shift_JIS","P3P":"CP=\"This is not a P3P policy! See https:\/\/www.google.com\/support\/accounts\/answer\/151657?hl=en for more info.\"","Date":"Sun, 09 Jul 2017 08:36:49 GMT","Alt-Svc":"quic=\":443\"; ma=2592000; v=\"39,38,37,36,35\"","Server":"gws","Transfer-Encoding":"chunked","X-XSS-Protection":"1; mode=block","X-Frame-Options":"SAMEORIGIN","X-Android-Received-Millis":"1499586145416"},"status":200,"data":"<!doctype html> HTML Src <\/html>"}],false);
angular#1.6.4 jdk1.8.0_102 android 6.2.3 cordova -v 7.0.1
angular#1.6.4
jdk1.8.0_102
android 6.2.3
cordova -v 7.0.1
my code is angler manual bootstrap. after the "deviceready".
<script type="text/javascript" src="cordova.js"></script> <script src="bower_components/angular/angular.min.js"></script> <script> var app = angular.module( 'myApp',[ 'cordovaHTTP' ] ); document.addEventListener( "deviceready", function(){ angular.bootstrap(document, ['myApp']); }, true); app.controller('rootController',[ '$scope' , 'cordovaHTTP', function( $scope , cordovaHTTP ) { cordovaHTTP.get("https://google.com/", { id: 12, message: "test" }, { Authorization: "OAuth2: token" }, function(response) { alert( response.data ); }, function(response) { alert(response.error); });
sorry , I will withdraw this problem.
execute is complete. but my application is missing cordova.callbackFromNative.
angular#1.6.4
jdk1.8.0_102
android 6.2.3
cordova -v 7.0.1
my code is angler manual bootstrap. after the "deviceready".