ionic-framework

Custom click on Ionic notification using Firebase

左心房为你撑大大i 提交于 2019-12-23 18:21:07
问题 I have been using ionic and FCM (Firebase Cloud Messaging) for notification. I get the notification on my app and now I have 2 issues. First, if its a normal notification like not with advanced options in Firebase Console > Notification , then it doesn't play any sound, but when it's data Notification, then it does play a sound. Second, I want to open a particular page of my app on notification click. So how do I do that? Note : I am using ionic not an ionic2. 回答1: First issue: We have sound

Estimote iBeacons and Cordova - sending push notifications when app is killed iOS

a 夏天 提交于 2019-12-23 18:01:09
问题 I'm making an app with Apache Cordova with Evothings Javascript plugin and Estimote iBeacons. I've managed to get push notifications working with the Phonegap PushPlugin when the app is int eh background (not completely closed), however I want to take it a step further and receive a push notification when in range of the iBeacons when the app is completely killed. I've seen this is possible from various posts in the Estimote community and here on Stack overflow by using native Xcode

Ionic Android App - SSL Cert error - Primary Error - 5

大兔子大兔子 提交于 2019-12-23 17:55:31
问题 Few weeks ago, our app in our playstore stopped working on very few android devices. After debugging, we found out that the app isn't able to connect with our server due to cert validation failure. Our server certificates are very much valid. Don't know why it is not recognized by few devices all of a sudden. While debugging we tried to connect our app with another certificate chain which is cross-root enabled(to support SHA-1 and SHA-2), it worked well. Was there any security update in

Ionic hybrid app geolocation blocked on iOS10

只谈情不闲聊 提交于 2019-12-23 17:31:40
问题 Since iOS 10 came out and I updated my iPhone 6 navigator.geolocation.getCurrentPosition() is not working. Address and port: 192.168.0.16:8100 Since geolocation API is considered as unsecured origin it would work only with SSL but can I do it in a Hybrid application where I don't know what will be the address on each phone? I've already tried what's mentioned here: Geolocation is blocked in iOS10 Editing in XCode was not helping Editing the Info.plist in text editor was not helping I have

How to add NSAppTransportSecurity to Cordova project

我只是一个虾纸丫 提交于 2019-12-23 17:27:49
问题 I'm working on a ionic cordova project. That application needs to be onfigured App Transport Security Exceptions for iOS 9 version. Does anyone know how to add below configuration to the cordova project configuration file? (config.xml) <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> </dict> Regards, 回答1: The easiest solution is probably by using a plugin. Take a look at cordova-plugin-transport-security cordova plugin add cordova-plugin-transport-security -

Directive In ionicModal complies first, before even controller loaded

房东的猫 提交于 2019-12-23 17:18:14
问题 I have a $ionicModal and inside that I have a directive, lets call it <scrap-link-cards> , this takes in the a two way data bind value of a scope object. This is inside a $ionicModal template:--> <scrap-link-cards datasource=(updates.update_links)> </scrap-link-cards> This is my full directive: .directive('scrapLinkCards', function ($log) { var controller = function ($scope) { $scope.links = angular.copy($scope.datasource); //undefined $scope.LastIndex = $scope.links.length - 1; }; var

ionic 2 local storage unable to set retrieved value to variable

早过忘川 提交于 2019-12-23 17:14:22
问题 I am trying to set the value retrieved from .get function into a variable declared outside but unable to do so. var dt; //retrieve this.local.get('didTutorial').then((value) => { alert(value); dt = value; }) console.log("Local Storage value: "+dt); I'm able to get "true" for the alert, but getting "undefined" for the console.log that is printing outside of the function. One workaround is that I can put all my remaining codes into the ".then function" , but that would be very messy. Update

Loading map to ngSwitch child scope using ElementRef in Ionic

对着背影说爱祢 提交于 2019-12-23 17:09:41
问题 I'm trying to access a ngSwitchCase view using @ViewChild and ElementRef to load a google map in my Ionic 3 app. I understand the ngSwitch creates its own scope but is it not accessible in anyway so I can load the map from google to the #map id="map" div in the mapView ngSwitchCase ? page.ts //the import import { ElementRef, ViewChild } from '@angular/core'; @Component({ selector: 'page-views', templateUrl: 'views.html' }) export class ViewsPage { //the attribute in the export class

Observable create is called twice

你离开我真会死。 提交于 2019-12-23 16:43:44
问题 I am using Ionic3 with a rxjs/Observable . I have the following function, and for some reason, even though the function is only called once, the 3rd line gets fired twice. findChats(): Observable<any[]> { return Observable.create((observer) => { this.chatSubscription2 = this.firebaseDataService.findChats().subscribe(firebaseItems => { this.localDataService.findChats().then((localItems: any[]) => { let mergedItems: any[] = []; if (localItems && localItems != null && firebaseItems &&

Execution policy exception registration failed and was skipped: Error Domain=NSPOSIXErrorDomain Code=1 “Operation not permitted”

天大地大妈咪最大 提交于 2019-12-23 16:37:57
问题 i have an ionic app and trying to run below ionic cordova build ios though the compilation succeeds but i see errors just before it as below RegisterExecutionPolicyException /Users/moblizeit/Library/Developer/Xcode/DerivedData/Scan_Buddy-bgqkrrwvotqcxbgakwtfvdcnmkvx/Build/Intermediates.noindex/ArchiveIntermediates/Scan\ Buddy/InstallationBuildProductsLocation/Applications/Scan\ Buddy.app (in target 'Scan Buddy' from project 'Scan Buddy') cd /Users/moblizeit/code-repo/apps/business-card