cordova

Cordova OneSignal Plugin won't getIds properly

我的梦境 提交于 2021-01-28 22:31:24
问题 I got a small problem with the onesignal plugin for cordova. When I'm running the app for the first time on wifi it won't get user's ids if I switch on mobile data it works just fine, after this works on wifi too. This is the error i get on onesignal debugger: Index.html: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui"> <meta name="apple-mobile-web-app

Cordova not finding avd

一笑奈何 提交于 2021-01-28 19:27:20
问题 After following the instructions for setting up Cordova for Android development on the Cordova documentation, I encountered this error: Error: No emulator images (avds) found. 1. Download desired System Image by running: /Users/Jacob/Library/Android/sdk/tools/android sdk 2. Create an AVD by running: /Users/Jacob/Library/Android/sdk/tools/android avd HINT: For a faster emulator, use an Intel System Image and install the HAXM device driver Every other post I found only said to add an emulator,

How to add a custom button on contact's to open with my app?

烂漫一生 提交于 2021-01-28 11:09:08
问题 Well, I wanna know if it possible open a contact with a cordova app from "contacts" app like WhatsApp. See here a example: I search on Google and npm, but nothing... Thanks 回答1: There's really good documentation about this on Android's website here: https://developer.android.com/guide/topics/providers/contacts-provider Make sure you read the entire post, but specifically check out this section that talks about adding your stuff into the Contact 's screen: https://developer.android.com/guide

Firebase in Cordova/Phonegap: Log in using Email/Password from within app?

心已入冬 提交于 2021-01-28 06:11:02
问题 I'm running a webview from a cordova app and want to authenticate a user, I know they have the OAuth strategies but I need to use the email/password combination. I'd like to keep things simple but may end up having to generate a token. Open an InAppBrowser that loads an auth flow for firebase Listen for that auth flow to be completed using this method: http://blogs.telerik.com/appbuilder/posts/13-12-23/cross-window-communication-with-cordova%27s-inappbrowser Grab the result from the webview

FAILED to open .js extension files in Eclipse?

谁说我不能喝 提交于 2021-01-28 05:13:59
问题 I am devloping phonegap application using eclipse whenever i am trying to open .js extension files it by default open "Alert" of Adobe DreamViewer and my adobe has been expired so its show me "Adobe Alert do u want to buy ? " Moreover its not opening any .js file and when i am trying to open file by rightclick---->open with ----->TextEditor then there is only code appearing in editor no "Code Completion " appears no error indication ....nothing how can i resolve this issue ? here is the

NullPointerException: Attempt to invoke virtual method 'void org.apache.cordova.CordovaPlugin.privateInitialize

怎甘沉沦 提交于 2021-01-28 04:50:30
问题 I was working away on my cordova plugin doing some refactoring and I started to get this crash on startup: --------- beginning of crash 12-12 21:42:29.791 4693 4693 E AndroidRuntime: FATAL EXCEPTION: main 12-12 21:42:29.791 4693 4693 E AndroidRuntime: Process: xyz.meris.app, PID: 4693 12-12 21:42:29.791 4693 4693 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{xyz.meris.app/xyz.meris.app.MainActivity}: java.lang.NullPointerException: Attempt to invoke

Cordova inAppBrowser Hide / Show in Java Android

本秂侑毒 提交于 2021-01-28 04:10:56
问题 I am working with Cordova and the inAppBrowser plugin for Android https://github.com/apache/cordova-plugin-inappbrowser I am trying to control the hardware back button for Android in Java file InAppBrowserDialog.java public void onBackPressed() { if (this.inAppBrowser == null) { this.dismiss(); } else { if (this.inAppBrowser.hardwareBack() && this.inAppBrowser.canGoBack()) { // this.inAppBrowser.goBack(); } else { // this.inAppBrowser.closeDialog(); } } } I do not want it to "goBack" or

Is index.js in cordova project necessary?

无人久伴 提交于 2021-01-27 20:34:16
问题 Do I have to keep this file (www/js/index.js) or can I delete it and put my project files instead? var app = { // Application Constructor initialize: function() { document.addEventListener('deviceready', this.onDeviceReady.bind(this), false); }, // deviceready Event Handler // // Bind any cordova events here. Common events are: // 'pause', 'resume', etc. onDeviceReady: function() { this.receivedEvent('deviceready'); }, // Update DOM on a Received Event receivedEvent: function(id) { var

Cordova signed apk produces a blank screen after splash screen

你说的曾经没有我的故事 提交于 2021-01-27 16:07:48
问题 Cordova debug build working fine. But signing apk produces white screen after splash screen Already tried with creating new app and signing with the release key. But the same issue on signed apk. cordova version - 7.1.0 cordova platform android -> 7.1.0 Here are plugins that i'm using: - cordova plugin add cordova-plugin-camera cordova plugin add - cordova-plugin-dialogs@~2.0.1 cordova plugin add - cordova-plugin-file@~6.0.1 cordova plugin add - cordova-plugin-geolocation@~4.0.1 cordova

A problem occurred configuring project ':CordovaLib'

偶尔善良 提交于 2021-01-27 12:50:44
问题 BUILD FAILED in 3s cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring project 'CordovaLib'. No toolchains found in the NDK toolchains folder for ABI with pref Try: Run with --stacktrace option to get the stack trace. Run with --infout . Get more help at https://help.gradle.org BUILD FAILED in 3s [ERROR] An error occurred while running subprocess Cordova. cordova build android exited with exit code 1. Re