Tag: cordova

Android installLocation when building with cordova cli

I am building a large cordova/phonegap app using the cordova CLI tools. I need the installLocation in the AndroidManifest.xml file to have the installLocation=”auto” (or preferExternal) setting. I have tried placing <preference name=”android-installLocation” value=”auto” /> in my config.xml file. However, I think that preference might only be valid when building with phonegap, not cordova. Is […]

Phonegap Cross-domain AJAX POST Request not working on Android

Cross-domain AJAX POST request works perfectly fine on web browsers including browsers on mobile phones, but doesn’t work for native applications built using Phonegap I have created a login form that users have to enter their login credentials, then they are verified by the server that is hosted on heroku and returns json {“success”:true} if […]

How to make a custom private plugin in phonegap

Is there any way to achieve this? Everywhere I see contributing to plugin development or making use of an existing plugin (which are public). I would like to make a private plugin. Is this possible? I’m aware that through eclipse (for android) I can do this. But anyway to do this using phonegap build process […]

Creating a local notification in response to a push notification (from firebase) in cordova/ionic

I’m building an application using Ionic Framework that implements a chat function similar to good-old facebook messenger, in that i want to notify users of a chat message, but if they view it elsewhere, i want to remove the notification from their home screen. I’m using firebase as a back-end for push notifications (though that […]

Android console displays: W/art: Attempt to remove non-JNI local reference

I’ve just setup my first Cordova project and installed OneSignal push notifications. This is all working as I expect, however the Android Developer Tools are showing this in the console: W/art: Attempt to remove non-JNI local reference, dumping thread W/art: Attempt to remove non-JNI local reference, dumping thread W/art: Attempt to remove non-JNI local reference, […]

Kiosk mode for android

I have a hybrid application written on phonegap for android tablets. Now I want the tablet to show only my application. Basically I want the tablet to be always in kiosk mode running only my application. So that all the buttons are disabled. I have looked for solutions online and one of them is to […]

Save file to public directory using Cordova FileTransfer

I need to download files on my mobile device and make them accessible for other apps (using Android and iOS). I managed to download a file to the SD card (cordova.file.externalDataDirectory), but this only exists on Android and even then I cannot rely on every device having an SD card. When I download to the […]

Pause an Android App with Phonegap

Is there any way to programmatically pause an Android app in Phonegap? I would like to mimic the behavior that occurs when you hit the HOME button. I’ve already had to overwrite the back button handler using this, and while in most cases I want it to do my action, when in a particular state […]

Android – Fix screen orientation for 1 page only (phonegap)

I am having an issue with fixing the screen orientation for my index.html page only. I want to allow the app to rotate except on the home page. I understand that adding the following into you activity – android:screenOrientation=”portrait” stops the screen from rotating. However, I need to set this so it is page specific. […]

'Connection to the server was unsuccessful' error when launching phonegap app on android emulator

I am using PhoneGap to build an Android application, the application is a combination of phonegap + jquery mobile. The application successfully launches in the emulator and I was able to debug the application, until yesterday. Today the application just refuses to launch on the emulator, and I keep getting this error 06-25 09:03:24.453: INFO/System.out(305): […]

Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.