phonegap-build

PhoneGap Build: how to open external url in device browser on Android?

和自甴很熟 提交于 2019-11-27 14:00:49
External URL's don't open in the system's browser in my PhoneGap Android application. I'm using PhoneGap Build 2.3.0. According to the Cordova documentation I used target '_system': window.open('http://www.myurl.nl', '_system'); In my config.xml I have: <plugin name="InAppBrowser" value="org.apache.cordova.InAppBrowser" /> <access origin="*" browserOnly="true" /> But still the links open in my apps webview. How to solve this? It's not the answer when you want to keep using PhoneGap Build, but I solved the problem by setting up a development environment for Cordova (PhoneGap) on my machine and

Using Local storage in phone gap

泪湿孤枕 提交于 2019-11-27 13:38:43
问题 I wanted to create an mobile app for my web project. I found phonegap. It says Easily create apps using HTML, CSS, and JavaScript. I have not created a mobile app using phone gap before. There are three storage options memory-store.js (MemoryStore), ls-store.js (LocalStorageStore) and websql-store.js (WebSqlStore). I just want to save a token to recognise the user. Which storage is best suited. Is there a better way to build an mobile app. I appreciate any help. 回答1: Using Local Storage will

Phonegap build - Open external page in InAppBrowser or childbrowser with no toolbar and close it?

こ雲淡風輕ζ 提交于 2019-11-27 12:55:57
I want to open an external page in the InAppBrowser or childbrowser, where I don't show any toolbar and where I can have a button in my externalpage that closes the browser and returns to the app from where I opened the browser. So how to close when you don ́t have a DONE button? I have seen that if I have var ref = window.open(encodeURI(url), '_self', 'location=yes'); then it is possible to close the browser with ref.close(); but if I use that in the externalpage that I opened it doesn't work, it is not closing the browser? Is there any way to autorotate any of them if I have set the

phonegap build permissions in android

时光怂恿深爱的人放手 提交于 2019-11-27 12:20:56
问题 I'm using phonegap build to create my app. Is there a way I can configure the permissions asked by android? For now it asks for all the permissions when I actually only need internet, localstorage and notifications. Please bare in mind - I'm only using phonegap build, Not CLI and not Cordova. I have no AndroidManifest.xml only config.xml Can anybody help? Thanks. Edit: This was answered by SvenT23. We both realized that phonegap has removed this answer from their current docs and left it only

Share something to a phonegap app

夙愿已清 提交于 2019-11-27 10:57:46
Is there any way to register a phonegap app to appear in the menu of applications to share? Sébastien Nussbaumer To appear in this list you have to modify the AndroidManifest.xml file and add the following lines under your activity : <intent-filter> <action android:name="android.intent.action.SEND" /> <category android:name="android.intent.category.DEFAULT" /> <data android:mimeType="text/plain" /> </intent-filter> This will make your app appear in the list. Now I think you may probably also want to know how to handle this in your code. When another application is going to share some text with

Cordova build: Please install Android target: “android-22”. I dont want android-22. I want android-19 - what do i do?

社会主义新天地 提交于 2019-11-27 07:52:45
I'm struggling with my phonegap setup and building my first app. I created a hello1 project. I added the android project Platform android already added Now when I run the cordova build, I get the error - Error: Please install Android target: "android-22" I do not have android-22. I do have android-19. I want my project to be built with android-19. How can I make that happen? I had android-22 which I uninstalled (for fixing a bigger problem). I do not understand which file should I be making a change in for this to work. The project.properties in the project comes after this step and it

Cordova / Ionic : $http request not processing while emulating or running on device

只愿长相守 提交于 2019-11-27 04:17:59
Everything were going well last week and while i was running the application on device or emulating with Genymotion, all the calls to the api were working (Either returning the data or failing but at least showing something). I was using ionic run android I add to update the global cordova ionic: npm install -g cordova ionic Since that all the $http requests are not even processing. I can't get any responses while the Api is still working fine and the CORS are perfectly set. The only way i found is to use the option --livereload or -l : ionic run -l android I want to avoid using the livereload

Executing several JS files with Ratchet push.js library

强颜欢笑 提交于 2019-11-27 03:39:24
问题 I´m developing a Phonegap app with Ratchet 2.0.2 using push.js for transition between pages. Everything is working smoothly but a couple of hours ago I stumble upon this: Script tags containing JavaScript will not be executed on pages that are loaded with push.js. If you would like to attach event handlers to elements on other pages, document-level event delegation is a common solution. After doing more research I found out this: Execute custom script after page loaded with Ratchet\Push.js

Cordova/Phonegap Android target: not installed [Android Studio Installed]

允我心安 提交于 2019-11-27 02:50:16
问题 Still facing this issue. I searched all over google could not found a solutions. Mac OSX Sierra Android Studio 2.3 Cordova/ Phonegap (Latest Version) Requirements check results for android: Java JDK: installed 1.8.0 Android SDK: installed true Android target: not installed Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable. Gradle: installed Error: Some of requirements check failed .bash_profile ==============

PhoneGap: Open external link in default browser (outside the app)

孤者浪人 提交于 2019-11-27 02:32:40
问题 I'm trying to open links in Safari (on an iPhone) from a PhoneGap application. I'm using PhoneGap version 3.1.0, and use PhoneGap Build, to build the application. I have two links on the page (shown below in www/index.html). Both links open inside the PhoneGap application. I can see that PhoneGap is loaded correctly, because alert('device ready!'); is triggered. What do I need to change, to open the links in the default browser (outside the app)? The www/config.xml file looks like this: <?xml