phonegap-build

How to Display PDF File with in the same App in phonegap

。_饼干妹妹 提交于 2019-11-30 07:09:35
how to show Pdf file with in the same phonegap app. i tried Inappbrowser,Mupdf,PDFJS all are displaying PDF using other pdf viewer.i would like to open the pdf file with in the same app.Can anyone help me out.Thanks in advance (Excuse my poor English) I don't know what you mean "in the same app", because inappbrowser , Mupdf and pdf.js can all do that. In Android platform, most popular solution is send intent and open via other pdf viewers because users can choose there favorite(you can try File Opener 2 ). If you don't like that, you can build an Activity for displaying pdf in your app, just

How to create a directory and file in that directory using phonegap file api?

别说谁变了你拦得住时间么 提交于 2019-11-30 03:35:28
I am using phonegap file api to create a directory and create a file in the directory created. The directory is getting created, but the file is not getting created in the directory. The code I am using is: document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail); } function gotFS(fileSystem) { var dataDir = fileSystem.root.getDirectory("data", {create: true}); var file = dataDir.getFile("lockfile.txt", {create: true, exclusive: true}); } The directory data is created but lockfile.txt is not

Landscape splash screen for Android in PhoneGap Build

∥☆過路亽.° 提交于 2019-11-30 03:01:21
问题 What should I enter to config.xml or what should I do in general, to have PhoneGap Build application's splash screen displayed correctly on Android device in landscape mode? PhoneGap Build (used to compile) docs / blog have nothing on this. Only Portrait is covered for Android. Since first (docs) says that using height and width is cross-platform supported, I tried to use it: <gap:splash src="res/splash-200x320-android.png" gap:platform="android" gap:density="ldpi" width="200" height="320" />

Open url in webview - phonegap

泄露秘密 提交于 2019-11-29 11:53:37
问题 I would like to know how can I open an url in the app context of embed webview. Currently this demo will open a new tab in external browser, so, not what I am expected. I am using google.com just for testing. Summary, I am looking for a functional demo. <?xml version="1.0" encoding="UTF-8"?> <!-- config.xml reference: https://build.phonegap.com/docs/config-xml --> <widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/1.0" xmlns:android = "http://schemas.android

Cordova iOS Video tag Local File Source

情到浓时终转凉″ 提交于 2019-11-29 10:45:52
I have problem playing local video on iOS on my Cordova based app. At the beginning I want to stress out that this problem is happening only when I'm using WKWebView , and if UiWebView is used, video plays fine. This is scenario I have: -User comes to screen to which video url is passed -Via FileTransfer I download it to phone and store it at desired location -Using JS video is loaded to <video> tag and played. Basically I'm doing everything as described in answer to this SO question . The problem with UiWebView was that if relative path was set to src, video for some reason couldn't be loaded

Phonegap - Android How to adjust layout in Full Screen Mode when softkeyboard is visible

主宰稳场 提交于 2019-11-29 10:05:57
问题 I am working on an phonegap app for a Samsung Galaxy Tab 3. When this application is in full screen mode, the softkeyboard hides the text input fields and it's impossible to scroll the page to see the content. how could I fix the problem? 回答1: After spending a day trying almost every possible solution in this website, nothing worked for me. At the end I was able to find a work around based on the following two proposed solutions: https://stackoverflow.com/a/19494006/1435991 this link shows a

Phonegap (online build) app - no internet connection and network status

点点圈 提交于 2019-11-29 06:42:53
My first jquery mobile app contains elements which needs datas from Internet sources like public Google calendars and Amazon affiliate widgets but it works only when I testing in my chrome browser or on a Kindle Fire device with the html5 app tester. If I build android release apk with the online Phonegap, the Kindle and other android device like a Lenovo mobile can't reach the Internet connection in the app. I've read the all of topics in this issue and found the it was proposed to use <access origin="*" subdomains="true" /> in the config.xml but it was ineffective. I also put code snippets

Using Angular UI-Router with Phonegap

廉价感情. 提交于 2019-11-29 03:56:52
I currently have a project built with Angular that I'm deploying to the Phonegap Build service to create iOS and Android distributions. Originally, I was using Angular's built in routing service. However, the need to nest multiple views facilitated my adoption of the Angular UI-Router . I've built a simple routing system that works when testing locally via a web browser and using Ripple Emulator . The index.html is as follows: <html lang="en" ng-app="myApp"> <head> <meta charset="utf-8" /> <meta name="format-detection" content="telephone=yes" /> <meta name="viewport" content="width=device

How to create a directory and file in that directory using phonegap file api?

走远了吗. 提交于 2019-11-29 01:08:20
问题 I am using phonegap file api to create a directory and create a file in the directory created. The directory is getting created, but the file is not getting created in the directory. The code I am using is: document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail); } function gotFS(fileSystem) { var dataDir = fileSystem.root.getDirectory("data", {create: true}); var file = dataDir.getFile(

How to remove iOS status bar with Phonegap Build?

坚强是说给别人听的谎言 提交于 2019-11-28 20:21:58
Is it possible to get rid of the status bar in iOS7 when using Phonegap Build 3.1? I can remove the status bar when building locally in Xcode, but as soon as I try Phonegap Build, it's back again. Is there a config preference to remove the status bar completely? If not, is it possible to overlay the status bar on top of the app view and set it to a transparent background? I do not want the status bar to push down the app view 20px, which is the case now. As of Phonegap 3 you can now customize plist files via config.xml. Code: <gap:config-file platform="ios" parent=