cordova-plugins

Reduce boot time in ionic-2 app

℡╲_俬逩灬. 提交于 2019-12-03 14:22:25
I am new to ionic-2 project.I just want to know how to reduce boot time of app.Because after 3 sec of splash screen , it shows white screen and takes 9 sec to start. clew Try to put this on the second line of your main.ts file import { enableProdMode } from '@angular/core'; then before the bootstrap line put enableProdMode(); also when building use --prod so ionic build android --prod Nandy_10 Please follow below steps to reduce splash screen time:- First, delete your node_modules folder Delete any Temp Folder Delete Plugins Folder remove platform android using ionic platform rm android . Now

Ionic app crashes on iOS 12.2 because of '_alwaysRunsAtForegroundPriority'

扶醉桌前 提交于 2019-12-03 14:00:16
问题 On iOS 12.2 my app is terminated just after startup, with this message in xcode: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key _alwaysRunsAtForegroundPriority.' Anyone who can point me in the right direction for this one? I see that there has been some warnings about this earlier: How to resolve app validation "The app references non-public selectors in Payload/MyApp.app/MyApp:

Setting AVAudioSession Category has no effect on sound from WKWebView

倖福魔咒の 提交于 2019-12-03 13:55:42
I can not seem to override the AVAudioSession category or port when audio is being played from a WKWebView. The same code works perfectly when using a normal UIWebView. AVAudioSession *session = [AVAudioSession sharedInstance]; [session setCategory:AVAudioSessionCategoryPlayAndRecord error:&err]; I've also tried activating the sharedInstance like this, but it did not help: [session setActive: YES error: nil]; The above code has no effect on audio coming from a WKWebView. I did find some reports on Twitter that iOS 8.1 is mixing WKWebView audio with background app audio, but I couldn't find the

How do I implement Campaign tracking with Cordova?

倾然丶 夕夏残阳落幕 提交于 2019-12-03 13:38:42
问题 I am trying to implement campaign tracking in my cordova app, but I am not having success. I previously used danwilson plugin, which works nice, but it does not have support for campaigns, as I saw here: https://github.com/danwilson/google-analytics-plugin/issues/68 So I changed my plugin to this fork: https://github.com/Anu2g/google-analytics-plugin Which have campaign tracking. I am currently testing in Android, I have added this to my manifest <!-- Used for Google Play Store Campaign

cordova - Multiple dex files define Lcom/google/android/gms/iid/zzc

蹲街弑〆低调 提交于 2019-12-03 12:25:27
I am trying to compile a cordova app for android and I am getting this error. Any ideas? This is the error I am getting: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':transformClassesWithDexForArmv7Debug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/iid/zzc; * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. I

Cordova shows an warning as “ THREAD WARNING: [Your function] took [n] ms. ” in iOS

断了今生、忘了曾经 提交于 2019-12-03 12:02:54
问题 "THREAD WARNING: ['Console'] took '81.661865' ms. Plugin should use a background thread." While running iOS Phonegap project. Similarly for some of the remaining plugins like geolocation and filesystem. As I am new to Phonegap ,can please anyone tell me how can I run the plugin on background thread. I have checked this also. Can we ignore this thread warning or is it related to memory issue in iOS Phone-gap thanks 回答1: As per this. solved my warning issue I found warning can be ignored .But

Status Bar on iOS Background Color

给你一囗甜甜゛ 提交于 2019-12-03 09:32:24
问题 I’m having a hard time setting the iOS status bar background color to transparent. I’m using the latest version of cordova statusbar and ionic, and leaving everything to their default setting, however i’m getting a white background color for some reason. How can i set the background color to transplant, i though this is the default value anyhow. 回答1: Okay so after referring to: https://issues.apache.org/jira/browse/CB-12886 and https://issues.apache.org/jira/browse/CB-12890 The issue occurs

Opening PDF file in ionic 2 app

自古美人都是妖i 提交于 2019-12-03 09:08:18
I am trying to make an ionic 2 app. I have a pdf generated using jsPDF. The code for the same is var doc = new jsPDF(); doc.setFontStyle('Bold'); doc.setFontSize(14); doc.text('Testing PDFs', 20, 20); Now I want to save the open the PDF in the mobile app, but doc.output('save', 'tester.pdf'); doesn't seem to work in the mobile app. Please can you tell me which plugin can I install so as to view and share the newly made pdf. I think includes script via external URL may not a good option in ionic. There is an other way as below: 1-Install ng2-pdf-viewer module npm install ng2-pdf-viewer --save

Apache Cordova geolocation.watchPosition() times out on iOS when standing still

一世执手 提交于 2019-12-03 08:47:56
When utilizing Apache Cordova's cordova-plugin-geolocation, specifically with watchPosition() I am encountering difficulties on at least iOS 8.1.3 through 8.3. What is happening is that when a user is moving, the coordinates work just fine and are continuously updating. However when the user stops for a few moments (say the timeout that is set), a timeout error is thrown. The second the user moves again the coordinates are working. We cannot increase the timeout too much for fear that users will legitimately lose reception and have to re-record their field boundaries (agricultural application)

cordova, Firebase, FCM Plugin - Not showing notifications in notification bar on iOS

前提是你 提交于 2019-12-03 08:02:50
I'm using this plugin with cordova: cordova-plugin-fcm to get notifications working. It works good on Android. Problem is with iOS, when the app is in foreground the notifications arrives. But when the app is closed or in background, the notification doesn't show in notification bar, but when I open the application I can see the notification arriving and the popup I generate, gets opened. But I really need to notification to show in lock screen and in the notification bar. This is what I'm sending to Firebase API: / POST to https://fcm.googleapis.com/fcm/send And in the body I'm sending this: