cordova

How to get absolute compass heading on Cordova Android platform

↘锁芯ラ 提交于 2021-01-29 06:01:02
问题 I am developping an hybrid App using Cordova on Android platform. I would like to get the compass heading between my device orientation and the true North. However the 'deviceorientationabsolute' event (as documented here https://developers.google.com/web/updates/2016/03/device-orientation-changes) currently gives me the compass value relative to the initial orientation of my device. I was expecting an absolute value in reference to the true North. Using chrome console, I debugged my device

Cordova InAppBrowser plugin shows blank screen on iOS

限于喜欢 提交于 2021-01-29 05:11:47
问题 I've done some serious searching on stackoverflow, but no result. A lot of similar issues, but no one has the solution that I need. My problem is: I'm developing a ios cordova app that make use of the InAppBrowser plugin. Whenever I run the app from xcode directly on my iPhone, it works fine. Whenever I run the app from xcode in a simulator on my mac, it works fine. Whenever I upload the package to the appstore and run the app through Testflight however, the InAppBrowser opens, but only shows

Cordova InAppBrowser plugin shows blank screen on iOS

雨燕双飞 提交于 2021-01-29 05:09:08
问题 I've done some serious searching on stackoverflow, but no result. A lot of similar issues, but no one has the solution that I need. My problem is: I'm developing a ios cordova app that make use of the InAppBrowser plugin. Whenever I run the app from xcode directly on my iPhone, it works fine. Whenever I run the app from xcode in a simulator on my mac, it works fine. Whenever I upload the package to the appstore and run the app through Testflight however, the InAppBrowser opens, but only shows

Open url in same tab in browser using android code(not using webview)

隐身守侯 提交于 2021-01-29 04:33:16
问题 I am trying to open URL in browser in same tab. Instead of creating new tab(for same URL) of each click on android app. Hers's is the code: Intent intent = new Intent(Intent.ACTION_VIEW,Uri.parse("http://1.1.1.1:8008")); intent.putExtra(Browser.EXTRA_APPLICATION_ID, "com.android.browser"); startActivity(intent); If I close the browser and again restart the application I see URL opened in new tab, instead of open using existing tab. 回答1: There are many Web browsers available for Android.

Sound recognition for Phonegap

六眼飞鱼酱① 提交于 2021-01-29 04:15:04
问题 I am creating an Android application using Phonegap. I would like to record a sound (for example, a doorbell), and detect if that sound is heard again. Is there any sound recognition plugin for Phonegap? If not, how can I access the frequencies of the recorded sound (for example, in an array), so I can manually write an algorithm to compare the two audio files? Is there any audio format which stores data in that form? Thank you 来源: https://stackoverflow.com/questions/39315104/sound

net::ERR_CONNECTION_REFUSED on cordova app

99封情书 提交于 2021-01-29 04:03:45
问题 As the title states, I am getting this error from chrome's remote debugging on a separate android device, when I press the login button to send a GET request using ajax call. It works fine on a browser, however. I've changed the IP address in the URLs on my js files to point to my public IP. I've checked around and followed recommended steps like adding the Content-Security-Policy header to the index.html and also checking for the cordova plugin whitelist, adding allow-intent and allow

PhoneGap/Cordova “javac -version” not found.

痞子三分冷 提交于 2021-01-29 02:02:08
问题 I've updated my Mac to Yosimite. I've also installed JDK 1.8x. However, when I go phonegap run android I get the following: [phonegap] detecting Android SDK environment... [phonegap] using the local environment [phonegap] adding the Android platform... /Users/profile/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/node_modules/q/q.js:126 throw e; ^ Error: Failed to run "javac -version", make sure you have a Java JDK (not just a JRE) installed. at /Users/profile/.cordova/lib/npm_cache

PhoneGap/Cordova “javac -version” not found.

浪尽此生 提交于 2021-01-29 01:59:45
问题 I've updated my Mac to Yosimite. I've also installed JDK 1.8x. However, when I go phonegap run android I get the following: [phonegap] detecting Android SDK environment... [phonegap] using the local environment [phonegap] adding the Android platform... /Users/profile/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/node_modules/q/q.js:126 throw e; ^ Error: Failed to run "javac -version", make sure you have a Java JDK (not just a JRE) installed. at /Users/profile/.cordova/lib/npm_cache

PhoneGap/Cordova “javac -version” not found.

牧云@^-^@ 提交于 2021-01-29 01:59:07
问题 I've updated my Mac to Yosimite. I've also installed JDK 1.8x. However, when I go phonegap run android I get the following: [phonegap] detecting Android SDK environment... [phonegap] using the local environment [phonegap] adding the Android platform... /Users/profile/.cordova/lib/npm_cache/cordova-android/3.6.3/package/bin/node_modules/q/q.js:126 throw e; ^ Error: Failed to run "javac -version", make sure you have a Java JDK (not just a JRE) installed. at /Users/profile/.cordova/lib/npm_cache

Cordova OneSignal Plugin won't getIds properly

▼魔方 西西 提交于 2021-01-28 22:59:02
问题 I got a small problem with the onesignal plugin for cordova. When I'm running the app for the first time on wifi it won't get user's ids if I switch on mobile data it works just fine, after this works on wifi too. This is the error i get on onesignal debugger: Index.html: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui"> <meta name="apple-mobile-web-app