phonegap-build

App cache iOS PhoneGap

岁酱吖の 提交于 2020-01-09 11:10:10
问题 On Android I used file:///storage/sdcard0/Android/data/my.app.id/cache/ to download (FileTransfer) some images and then show them in my html. Images and everything else inside this folder gets removed when deleting my app, which is exactly what I want. How to achieve this on iOS? I tried with file:///var/mobile/Applications/<GUID of app>/Documents/ since this is what I got when requesting file system, but the images won't even download (error code 1). Any ideas? I found out more about my

Android and iOS mobile app that points to web app URL

落花浮王杯 提交于 2020-01-07 03:54:09
问题 Goal Let's say I have a fully responsive web app that's hosted at, say, http://example.com. Now, I want to build a mobile app for Android and iOS that just points to my web app. i.e., When the user opens the app, it navigates them to example.com and that's it. Question What is the procedure for doing this? Are there any tools out there that make this simple? Clarification This StackOverflow answer says: This is how you do it for Android: Intent browserIntent = new Intent(Intent.ACTION_VIEW,

Urban Airship with Adobe PhoneGap Build

亡梦爱人 提交于 2020-01-07 01:25:59
问题 Can I use Urban Airship with Adobe PhoneGap Build. I've read many questions but all seems really out date. Is Urban Airship Push Notification Service supported by PhoneGap Build nowadays. I also saw that in plugins tab there are some push notifications plugins and also there is a place that said Submit Plugin. Can I submit UA Phonegap 3.0 Plugin hosted at Github in that case? I've read Urban Airship documentation but it only talks about using their plugin which is not listed in adobe build.

PhoneGap FileAPI Error Code 5 finding video in storage/emulated

拟墨画扇 提交于 2020-01-06 15:48:29
问题 Just getting started with PhoneGap File API / Cordova 3.0 and I have a little issue looking up a file using getFile(). Don't know if the chaining is wrong. Or just missing the obvious... I get to gotFS, passing in the full path as file:///storage/emulated/0/DCIM/Camera/... and the result is an error 5. I am guessing the path is not correct, or I can't get to storage/emulated? The whole point is to return the file as a base64-encoded data URL e.g.,readAsDataURL. // I just finished taking a

AEM6.1 mobile Apps

徘徊边缘 提交于 2020-01-06 14:38:13
问题 I needed some inputs on mobile apps. Query: I have an existing web application on AEM(angularJS is not used). I want to transform the same on Mobile app using AEM6.1 While reading through the documentation section of AEM Apps, I found that the mobile App built on AEM - works on the terminology and AngularJS framework. - mobile App has different paths and app structure as compared to AEM web Applications -since, phonegap has to be used, relative path needs to be different than the same of web

SailsJS to Phonegap?

时光毁灭记忆、已成空白 提交于 2020-01-06 14:15:52
问题 I'm trying to create a Phonegap project from SailsJS project. As i found out so far, command "sails build" should generate www folder with files to import to Phonegap. I've tried that, but i get www folder without index file, views,.. It looks like custom grunfile is needed to get appropriate www folder content. The problem is, i don't know how to build it. It would be great if somebody could provide that file... I'm sure it would be very helpful for many... Similar problem has been described

PhoneGap Build with Android Camera not firing

两盒软妹~` 提交于 2020-01-05 07:57:28
问题 I am trying to get the camera working using phonegap build (I am very new to this). The problem is that nothing seems to be firing. My code: $(document).on('click', '.add_photo', function(){ document.addEventListener('deviceready', onDeviceReady, false); function onDeviceReady(){ navigator.camera.getPicture(onSuccess, onFail, {quality:50}); function onSuccess(imageData){ var image=document.getElementById('myImage'); image.src='data:image/jpeg;base64,'+imageData; } function onFail(message){

Images do not display when using Adobe PhoneGap + Angular2 (pictures & src)

半世苍凉 提交于 2020-01-04 13:11:27
问题 I have created a brand new project using the cli. I have tried adding a few image tags, each with a different kind of source. (local image, image from the web, image via https source) On the browser, this renders all of them just fine, however when the project is built using Adobe PhoneGap (via the PhoneGap Desktop debugger + companion app), the images do not display. The same project made purely in html (an index.html file with only one img tag) also works just fine The inspector shows that

How to build Phonegap Build application for Android Wear?

无人久伴 提交于 2020-01-03 19:29:12
问题 I would like to build a pure HTML5 and Javascript based Phonegap application, that can be build with Phonegap Build and be able to deploy it to Android Wear. If this is possible at this moment, then what steps should be taken? My research so far: There is a notice on Phonegap Build forum about Ball Escape game, that is reported to be built with Phonegap and ready to be run on Android Wear. But, there are no details on how this was done except a meaningless comment by Phonegap Build rep Amir,

Phonegap : Camera not working in android kitkat

守給你的承諾、 提交于 2020-01-03 14:00:31
问题 I am developing an App in Android for camera application. I add the camera using cordova plugin config.xml <feature name="Camera"> <param name="android-package" value="org.apache.cordova.camera.CameraLauncher" /> </feature> code for taking Picture function snapPicture () { navigator.camera.getPicture (onSuccess, onFail, { quality: 100, sourceType: navigator.camera.PictureSourceType.CAMERA, mediaType: navigator.camera.MediaType.PICTURE, destinationType: destinationType.FILE_URI, encodingType: