cordova

Sign In With Apple - Ionic 3

陌路散爱 提交于 2020-08-25 04:40:02
问题 Am trying to implement sign in with apple on my ionic 3 project using the following plugin and wrapper ionic cordova plugin add cordova-plugin-sign-in-with-apple npm i --save @ionic-native/sign-in-with-apple Implementation as described on the plugin docs import { SignInWithApple, AppleSignInResponse, AppleSignInErrorResponse, ASAuthorizationAppleIDRequest } from '@ionic-native/sign-in-with-apple/ngx'; constructor(private signInWithApple: SignInWithApple) { } this.signInWithApple.signin({

window.resolveLocalFileSystemURI is not a function

允我心安 提交于 2020-08-22 16:45:05
问题 I created a web application that I need to convert to a mobile application, now all I have is html5/js/css files which means I don't have any www foder no platforms folder, not a cordova project ... I started first to build the app using cordova command lines, but I couldn't, I found many problems on that, I used then https://build.phonegap.com/ , and it works fine for me. In order to read the file, I have tried this code : window.resolveLocalFileSystemURI("file:///android_asset/www/data/User

Cordova Plugin: Send event to Javascript?

♀尐吖头ヾ 提交于 2020-08-22 06:05:50
问题 I'm trying to develop a Cordova plugin for Android following the tutorial found here: http://www.mat-d.com/site/tutorial-creating-a-cordova-phonegap-plugin-for-android-app/ So far, so good. However, I'd like to know how to send data/trigger an event in my Javascript code from my plugin - for example, when a user taps an icon in my native code, I'd like my javascript to do something. Is this possible? 回答1: So I got it to work as follows: I created a private CallbackContext object in my plugin:

Cordova Plugin: Send event to Javascript?

六眼飞鱼酱① 提交于 2020-08-22 06:05:38
问题 I'm trying to develop a Cordova plugin for Android following the tutorial found here: http://www.mat-d.com/site/tutorial-creating-a-cordova-phonegap-plugin-for-android-app/ So far, so good. However, I'd like to know how to send data/trigger an event in my Javascript code from my plugin - for example, when a user taps an icon in my native code, I'd like my javascript to do something. Is this possible? 回答1: So I got it to work as follows: I created a private CallbackContext object in my plugin:

ionic cordova run android An error occured while running subprocess native-run

孤街醉人 提交于 2020-08-20 03:58:47
问题 I am trying to run my ionic app on an android device (Xiaomi Pocophone) by running the following command: ionic cordova run android However, I get the following error message: BUILD SUCCESSFUL in 7s 42 actionable tasks: 42 up-to-date Built the following apk(s): C:\laragon\www\ionicProject\platforms\android\app\build\outputs\apk\debug\app-debug.apk > native-run.cmd android --app platforms\android\app\build\outputs\apk\debug\app-debug.apk --device [native-run] Selected hardware device 4d65535f

AddEventListener Event calling multiple times

安稳与你 提交于 2020-08-10 01:20:49
问题 I have a simple Cordova project with Angular Framework. I am using https://github.com/auctifera-josed/cordova-plugin-idynamo plugin to communicate with MagTek device. I am listening to the 'magtekEvent' on load of a particular screen to capture the data. Every time I go to other screen and come back to this screen I can see the event is triggering multiple times based on the number of time I visit this screen. I tried removing the event but nothing happened. Can anyone help me on how to stop

Cordova hook and access to build settings

余生长醉 提交于 2020-08-09 13:37:07
问题 During a hook for Cordova on for example before_build/before_prepare : cordova build -> before prepare hook -> prepare -> after prepare hook -> before build hook -> build -> after build hook Is it possible to obtain settings about the build? If it's a release build or a development build, if the current platform is 'ios' or 'android' or anything else for that matter. Is this at all possible? 回答1: Yes it is possible exactly like mentioned in the documentation. Your hook(-function) gets passed

Cordova Build failed with error Error code 65 for command xcodebuild with args

走远了吗. 提交于 2020-08-08 06:01:58
问题 I am building a basic JavaScript app in Visual Studio on Windows using Cordova and connecting to a local macbook for compiling. I get this generic error: "Build failed with error Error code 65 for command xcodebuild with args" I have tried everything I could think of to fix the problem, but without knowing what the real error is, I can't figure out what to do. I completely rebuild my ios certificates, but that didn't work. I think there might be more details in the build info, so I am

ionic cordova run ios - Export failed with code 65

末鹿安然 提交于 2020-08-07 05:38:06
问题 I'm done with research on this error. I get following error when trying to run ionic cordova run ios --livereload : [cordova] Non-system Ruby in use. This may cause packaging to fail. [cordova] If you use RVM, please run `rvm use system`. [cordova] If you use chruby, please run `chruby system`. [cordova] error: archive not found at path '/Users/yassinezeriouh/Desktop/doday2/platforms/ios/DoDay.xcarchive' [cordova] ** EXPORT FAILED ** [cordova] [cordova] CordovaError: Promise rejected with non

How do I get all console messages to log on Cordova iOS at runtime?

旧巷老猫 提交于 2020-08-04 19:35:28
问题 When I am running my WKWebview application under Cordova on iOS, messages that I log in my web application using console.debug and console.info are not getting output to the Xcode console or in my logs. console.log messages are getting output however. How can I get all of my log messages to output? 回答1: After much research and reviewing of the cordova.js source, I realized that the reason why my console.info messages were not getting logged is because Cordova overrides the console object when