cordova-plugins

Change the icon of the push notification status bar on Android and IOS

梦想的初衷 提交于 2020-01-03 07:07:29
问题 My app icon is blue/red and when I receive a push notification the icon on status bar is the same app icon(blue/red). I want the icon of the status bar be a transparent and white version. My ionic project is using this cordova plugin to receive push notifications. The official docs of the plugin theres nothing about how to configure the icon of the status bar notification. 回答1: Looks like what you’d want isn’t possible with that library. On iOS According to the documentation, the notification

Why Angular.js variables not accessible in Cordova InAppBrowser's executeScript callback

别等时光非礼了梦想. 提交于 2020-01-03 03:03:12
问题 I am developing hybrid app based on angular.js using cordova. I have faced the problem not accessing to angular variables $ (like $rootScope) after executing the followings. cordova and angular.js finished to be initialized as soon as this hybrid app is launched. When user click specific button for social login, the following loginTwitterAccount $scope function is called. loginTwitterAccount opens new window using 'InAppBrowser' cordova plugin to load external authorization page, not local.

Why Angular.js variables not accessible in Cordova InAppBrowser's executeScript callback

拈花ヽ惹草 提交于 2020-01-03 03:03:08
问题 I am developing hybrid app based on angular.js using cordova. I have faced the problem not accessing to angular variables $ (like $rootScope) after executing the followings. cordova and angular.js finished to be initialized as soon as this hybrid app is launched. When user click specific button for social login, the following loginTwitterAccount $scope function is called. loginTwitterAccount opens new window using 'InAppBrowser' cordova plugin to load external authorization page, not local.

How to change ionic 2 local push notification icon?

无人久伴 提交于 2020-01-02 13:50:43
问题 I have created a hybrid app using ionic2 in that I am using cordova local push notification. Everything working perfectly only thing is not able change a icon, in below I have paste my code here. LocalNotifications.schedule({ id:1, title: "Test Title", text: "Push Notification", icon: "res://icon.png", at: new Date(new Date().getTime() + 5 * 1000), sound: null, every: "minute" }); And also I tried this below code. LocalNotifications.schedule({ id:1, title: "Test Title", text: "Push

How to create a separate directory for cordova app and storing data in it?

浪尽此生 提交于 2020-01-02 05:20:13
问题 I want to create a specific directory for my cordova project. I have no idea what to do for that. I refered so may links like, How to move file to app directory cordova cordova, android app how to create subfolder and someother links. But it is not clear whether they are using any cordova plugins for this or we can do with pure javascript. These are not working for me. Please suggest if any plugins or functions are available. Thanks. 回答1: You need to use this plugin: https://www.npmjs.com

Build Error -Ionic Cordova fails for android [duplicate]

我的未来我决定 提交于 2020-01-02 03:15:10
问题 This question already has answers here : Running “cordova build android” - unable to find attribute android:fontVariationSettings and android:ttcIndex (27 answers) Closed last year . I get following error while running the command "ionic cordova build android --stacktrace" : :generateDebugResources :mergeDebugResources :processDebugManifest :processDebugResources ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings FAILED ERROR: In <declare

How can I add a native view from a Cordova plugin

流过昼夜 提交于 2020-01-01 19:21:00
问题 I am developing a plugin with the latest version of Cordova (3.3). I need to add a native UIImageView to the Cordova view. If I have access to the project for example in the platform folder, I can add my view to the view instance belonging to CDVViewController . However, I am not sure how to access that reference from a plugin. Inside my plugin I have: @interface CDVCool : CDVPlugin @property (weak, nonatomic) UIImageView *nativeImageView; ... @end How can I initialize and render this view by

Ionic cordova-plugin-qrscanner has no camera preview

◇◆丶佛笑我妖孽 提交于 2020-01-01 09:37:09
问题 I run a simple demo to use cordova-plugin-qrscanner, it can scan qrcode but no camera preview. qrscannerDemo on Github Related code blow: import { Component } from '@angular/core'; import { NavController } from 'ionic-angular'; import { AndroidPermissions } from '@ionic-native/android-permissions'; import { QRScanner, QRScannerStatus } from '@ionic-native/qr-scanner'; @Component({ selector: 'page-home', templateUrl: 'home.html' }) export class HomePage { constructor(public navCtrl:

Can't start an activity from a cordova plugin using .aar files

血红的双手。 提交于 2020-01-01 06:37:12
问题 I am trying to write a simple cordova-plugin for android, but I am stuck into a crash that I don't know how to resolve. I basically followed these steps to create simple plugin and it worked fine. http://www.mat-d.com/site/tutorial-creating-a-cordova-phonegap-plugin-for-android-app/ Yet, my plugin must call an activity that is packaged as an .aar file. Basically I have a full blown application with java/layouts that needs to be triggered by the plugin. I followed these steps to add my .aar

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

泄露秘密 提交于 2020-01-01 03:36:09
问题 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