ionic-framework

Where to find FCM Firebase registration ID's (in PHP, for Ionic framework)?

我与影子孤独终老i 提交于 2019-12-23 16:19:40
问题 We have build an app with the Ionic framework (we're beginners to Ionic etc), and we register the device to our Firebase account so that we can sent push messages. I've now found a PHP snippet which connects to fcm via cURL. I can set a message and title, perfect. My problem is that I can't get it to work, it requires something called "registration id's". Everything I find about this makes it seem like this is super easy to find, but I can't. Where to I find these registration ID's? All I

Ionic life cycle ionViewdidEnter not working

大城市里の小女人 提交于 2019-12-23 15:24:10
问题 I have an ionic 2 app. It has a tab inside tab view. There are two tabs. Home and Feed . The Feed page has two new tabs , Users and Freinds . The root of Feed is Users page and Users page has an ionViewDidEnter method. The problem I am facing is with this method not firing when I toggle between the parent tabs Home and Feed . If I toggle between Users and Friends it works. Otherwise only the life cycles in parent components work. How can I solve this issue? Is there any work around to quickly

share localStorage across webView and CordovaWebView android

这一生的挚爱 提交于 2019-12-23 15:12:33
问题 I am trying to share data in activity between webView and CordovaWebView. CordovaWebView of course using webView and that is why I do not understand why data stored in localStorage in my phoneGap app is not visible in simple webView which load html page from the same location as main application does. I've already investigated that data stored by the CordovaWebView is stored in file /app_webview/Local Storage/file__0.localstorage and data stored by created instance of webView class is stored

cordova error: Dex: Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code

丶灬走出姿态 提交于 2019-12-23 14:55:33
问题 I have a ionic project. It was successfully build and run in my android phone. suddenly from someday, when I run command "ionic cordova run android" I get the build error as below: Dex: Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code. This is caused by library dependencies that have been compiled using Java 8 or above. If you are using the 'java' gradle plugin in a library submodule add targetCompatibility = '1.7' sourceCompatibility = '1.7' to that submodule's

cordova error: Dex: Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code

别来无恙 提交于 2019-12-23 14:54:37
问题 I have a ionic project. It was successfully build and run in my android phone. suddenly from someday, when I run command "ionic cordova run android" I get the build error as below: Dex: Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code. This is caused by library dependencies that have been compiled using Java 8 or above. If you are using the 'java' gradle plugin in a library submodule add targetCompatibility = '1.7' sourceCompatibility = '1.7' to that submodule's

How to receive a push notification when you are near a specific place using a map?

↘锁芯ラ 提交于 2019-12-23 13:08:41
问题 I'm new to Ionic, and I'd like to know if you can give me some guidance. I am using Ionic 1. I have seen tutorials, and they use Google or one signal. But they are always basic tutorials and I have many doubts. I hope to do this for both iOS and Android. My application has some coordinates in the database, I get them with a web service. I would like that when I'm near a place I get a push notification. I am currently using the Google Maps plugin cordova-plugin-googlemaps and the geolocation

ionic Cordova Failed recording audio on IOS using Media plugin

梦想的初衷 提交于 2019-12-23 12:51:17
问题 i'm working on an ionic App and i need to record audio files , so i used the cordova-plugin-media , it worked fine for android but when i tried it on ios i get this error : {"message":"Failed to start recording using AVAudioRecorder","code":1} here is my code : var extension = '.wav'; var name = 'filename'; var audio = null; var filepath; $scope.startRecording = function() { name = Utils.generateFilename(); if(device.platform == "iOS") { //var path = "documents://"; //var path = cordova.file

How to use routing in IONIC 3

核能气质少年 提交于 2019-12-23 12:30:27
问题 I am developing an Ionic 3 application. Right now I am using NavController for routing and switching pages. Ex : this.navCtrl.push(DetailsPage); But I need to use Angular routing now. I found similar question for Ionic 2, but does this work in Ionic 3 as well? Can someone elaborate this? 回答1: Check this link for the detail of NavController link. Which you have to import into your current ts file, followed by => There are two ways of navigation we can make use in ionic 1) DeepLink 2) Component

IONIC CLI could not add Platform Android

冷暖自知 提交于 2019-12-23 12:16:20
问题 I tried to add Android platform with ' ionic platform add android ' and it gave the following error: > C:\Users\---\Desktop\Tst\Test>ionic platform add android > Updated the hooks directory to have execute permissions > Downloading Default Ionic Resources > Downloading: https://github.com/driftyco/ionic-default-resources/archive/master.zip > [=============================] 100% 0.0s > Done adding default Ionic resources > Adding icons for platform: android > Error: Cannot find module 'config

update $stateParams in ui-router after $location.search() is called

£可爱£侵袭症+ 提交于 2019-12-23 12:09:11
问题 I have an angular application which is using the ionic-framework, which uses ui-router on the back end. In one of my controllers I call: $location.search('filter','sometext'); I have reloadOnSearch disabled in my routing configuration. I noticed that updating the location does not update the $stateParams . Is there a way to force the $stateParams to update as the location is updated? I looked through the ui-router documentation, but didn't see anything about this scenario, but perhaps I