phonegap-plugins

Multiple Html files in PhoneGap Android project

北慕城南 提交于 2019-12-06 07:42:50
I am developing a cross-platform app with Phone Gap, Jquery Mobile in Android using eclipse. I am not at all using any PhoneGap functions in my app. My purpose with PhoneGap is to build native apps for ios, Android, windows etc from Adobe PhoneGap build service. Under android assest/www/ folder I created multiple sub folders like css,js,html etc, where I put my jquery mobile html,css,js files and my custom js,html,css. Note under www directory I have cordova.js and index.html, cordova jar also included in build path. My app is working fine, when I run it in eclipse + Android emulator. It is

Pubnub Push Notification not working for cross platform mobile app

大兔子大兔子 提交于 2019-12-06 07:01:25
问题 We are developing a cordova based android application which has chat capability. We are sending test chat messages from a server and we received the messages just fine when the app is in foreground. We would like to get a notification about chat message when app is in background. However we are not getting any Push Notification about chat message. The steps we followed are mentioned below. Kindly let us know the mistake we're making. We have referred this link to get notification on device

Open external links in Phonegap Build App (iOS/Android)

走远了吗. 提交于 2019-12-06 06:48:30
问题 I'm using Phonegap Build to deploy mi Apps, I'm using the Cordova 3.3.0 version. I want open external links in the native browser ( Android/iOS ). I'm trying to use the InAppBrowser plugin of Cordova, but it doesn't work for me. Open the links but inside the App without back button... :/ I've seen answers like Include phonegap.js file (but when deploys with Phonegap Build you don't have to include it, PGB do it for you), or using or using a function to open links + InAppBrowser Plugin, or

PhoneGap/Cordova app notifications

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 05:59:51
I am new to PhoneGap/Cordova, i am looking to add some notifications to my app. Push notification - so when a new article is released on app it will alert the users. Local Notifications - On set intervals (date and time) I can prompt the user of the latest articles on my app. I had done a lot of searching but unable to find a working example that I can import straight into a project and then modify. I have tried the following plugin in but was unable to get it working https://github.com/katzer/cordova-plugin-local-notifications/ Steps for enabling push notifications in project. create a

accessing android internal storage with cordova file plugin

余生颓废 提交于 2019-12-06 04:04:32
问题 I'm trying to make an android app that, so far, is using the native voice recorder to record audio. The path for that is the Sounds file in /storage/emulated/0/Sounds Now the app is using the File Transfer cordova plugin. The root for that is /data/data/thisAppDirectory and requestFileSystem is using this as the path. Is it possible to go up a directory with the file system to get to the sounds folder? 回答1: Yes here we go! You have to utilize cordova file-transfer plugin, like so: window

Remove Title Bar Phonegap

廉价感情. 提交于 2019-12-06 03:40:23
问题 How to remove the title bar that is showing for a second or so at the start of the application in phonegap build? I tried fullscreen as showed in Phonegap remove title bar at start and its working, the app is full screen but the title bar stil shows up for a second or so at the start of the app. When buildin locally I can remove the title bar form manifest.xml with the command android:theme="@android:style/Theme.NoTitleBar"> How can I completely remove the title bar from phonegap build? I

traverse through each file in SD card using phonegap file api

两盒软妹~` 提交于 2019-12-06 02:39:57
I want to traverse through each file in the SD card inside all the directories and sub directories using the FILE API of phonegap (which is the w3c file api actually). I have to perform a certain set of operations on these files by looking at their nature. I donot want to search for specific types of files, but traverse through each file in a sequential manner. Can someone please help me with this? Just a basic loop framework with the necessary requirements for the traversal would be a great help. Thank You in advance. I think the following code should work: window.requestFileSystem

How to get Path for local mp3 file from www in Phonegap IOS?

不问归期 提交于 2019-12-05 22:49:29
问题 i am using phonegap audio plugin in my phonegap app. I have some audio files stored in www/audio folder. For android i used "file:///android_asset/www/audio" to read local file. For IOS i need help. Thanks 回答1: Finally got it, reference:link To get path i used this function function getPhoneGapPath() { var path = window.location.pathname; path = path.substr( path, path.length - 10 ); return path; }; USAGE: For IOS : var snd = new Media( getPhoneGapPath() + 'test.mp3' ); For Android : prepend

Uncaught TypeError: Object #<Object> has no method 'exec' at file:///android_asset/www/index.html

拟墨画扇 提交于 2019-12-05 17:38:26
问题 using PhoenGap 2.2.0 Executed \bin\create C:\Temp\Test com.test Test Had following output Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved. Creating new android project... Building jar and js files... Copying template files... Copying js, jar & config.xml files... Copying cordova command tools... Updating AndroidManifest.xml and Main Activity... Imported Project On eclipse (4.2.0) did File > New > Project > Android > Android Project from

How do I write basic “Hello World” java script plugin in PhoneGap?

穿精又带淫゛_ 提交于 2019-12-05 16:19:01
I've read Cordova's tutorials, but I'm not sure they've given me enough information. EDITED TO SHOW UPDATED CODE: Let me show you my code: From the config.xml: <plugin name="someMethod" value="MyPluginClass" /> Now for the Plugin.h: #import <Cordova/CDV.h> @interface MyPluginClass : CDVPlugin - (void)someMethod:(CDVInvokedUrlCommand*)command; @end Now for the Plugin.m: #import "Plugin.h" @implementation MyPluginClass - (void)someMethod:(CDVInvokedUrlCommand *)command { NSLog(@"YOU ARE READING THIS NATIVELY FROM A PLUGIN"); } @end The very first html page that gets displayed is called "index