ionic-framework

IONIC 3 and jsPDF , using FILE Transfer to download pdf not working

一个人想着一个人 提交于 2019-12-23 04:56:23
问题 i want to use jsPDF library with IONIC3 to download PDF , i have created a simple document and when i try to download it with the default function from jsPDF doc.Save() it work in my browser , but in a real device won't work. So i decided to use FileTransfer Plugins from IONIC native , i have firstly created a blob File from jsPDF output , then i tried to use the writeFile() function from IONIC FILE plugin to create a new file from the blob , then i tried to download that file using Download(

angular send files to server

两盒软妹~` 提交于 2019-12-23 04:56:15
问题 I am trying to send two type of files in general to server images and zip I've already installed "@ionic-native/file": "^5.16.0", "@ionic-native/file-transfer": "^5.16.0", "cordova-plugin-file": "^6.0.2", "cordova-plugin-file-transfer": "^1.7.1", I also imported files classes into my component like: import { FileTransfer, FileUploadOptions, FileTransferObject } from '@ionic-native/file-transfer/ngx'; import { File } from '@ionic-native/file'; constructor( // etc. private transfer:

Google Maps click on InfoWindow

[亡魂溺海] 提交于 2019-12-23 04:51:21
问题 I am trying to call a function when user touches(clicks) on infoWindow. User scenario: User clicks on a google maps marker, an info window opens. User clicks on an item in infoWindow content. This click calls a function and another page opens. I am doing this in ionic 2 and typescript. Here is the info window content : text2 = text2 + '<div id="wrapper">' + '<div id="sidebar" >' + '<h5 onclick()=" '+ this.goToDealPage(businessDetails.deals[a])+ ' ">'+ businessDetails.deals[a].deal.title +'<

How to export const with logic using import in Ionic3

為{幸葍}努か 提交于 2019-12-23 04:42:01
问题 I am building an ionic3 app and running into a problem with setting a proxy. In Browser ionic will recognize the path of my proxyUrl like below. ionic.config.json { "name": "myApp", "app_id": "", "v2": true, "typescript": true, "proxies": [ { "path": "/api", "proxyUrl": "https://www.example.net/api" } ] } However, I run into the issue where ionic will recognize the path /api in my code for example in a get call this.http.get('/api')... but will not recognize the path in emulator or on device.

$localStorage data already there after I uninstalled and installed the ionic v1 app in Android device

故事扮演 提交于 2019-12-23 04:41:32
问题 I am developing an ionic v1 mobile application. When I uninstalled the app from Android device, the data saved in $localstorage are already persist there after I installed the app again. I am also using cordova-plugin-crosswalk-webview version 2.2.0 Other information: Cordova CLI: 6.3.1 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic Framework Version: 1.1.1 Ionic CLI Version: 2.1.1 Ionic App Lib Version: 2.1.1 Node Version: v4.4.1 I would gladly appreciate any kind of

$localStorage data already there after I uninstalled and installed the ionic v1 app in Android device

混江龙づ霸主 提交于 2019-12-23 04:41:20
问题 I am developing an ionic v1 mobile application. When I uninstalled the app from Android device, the data saved in $localstorage are already persist there after I installed the app again. I am also using cordova-plugin-crosswalk-webview version 2.2.0 Other information: Cordova CLI: 6.3.1 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic Framework Version: 1.1.1 Ionic CLI Version: 2.1.1 Ionic App Lib Version: 2.1.1 Node Version: v4.4.1 I would gladly appreciate any kind of

Ionic search bar does not search until the keyboard is hidden

有些话、适合烂在心里 提交于 2019-12-23 04:41:07
问题 I have a search bar in my Ionic app that I would like to use to filter/search through a list. Whenever I type in the search bar, in the background, the filtering is already happening but it doesn't show on the screen until I click the arrow down to hide the keyboard. Let me clarify by showing the following pictures: This is a picture of the list before I start to search: This is a picture of me trying to search for " abc ". Now, code behind, the searching has already happened but it has not

how to override the default back button in ionic

泪湿孤枕 提交于 2019-12-23 04:24:18
问题 I have three views playlists, playlist, and mediaplayer. In my project I am getting back button by default. I am debugging an play store app my direction viewing the page is playlists-->playlist-->media player.Also i have separate controller for all there views but i am getting a default back button in playlist and mediaplayer page only. 1).On clicking the back button in playlist page goes to playlists page so there is no problem. 2).On clicking the back button in mediaplayer page goes to

Cannot find <GoogleToolboxForMac/GTMNSData+zlib.h> error when building an ionic project for ios

时光总嘲笑我的痴心妄想 提交于 2019-12-23 03:24:06
问题 I came across this error when trying to build an ionic project for ios. It happened in the FirebaseCore build part of the process. I found the problem was a bug in the following file on line 23: platforms/ios/Pods/FirebaseCore/Firebase/Core/FIRNetwork.m It seems the angle brackets don't allow the search for the file to start at the Pods level, whereas quotes allow a relative path to be used. I found the solution was to do the following, so I thought I'd post it here in case anyone else has

Badge on app icon for Android doesn't show even after implementing ngCordova (cordova-plugin-badge) and phonegap-plugin-push

≡放荡痞女 提交于 2019-12-23 03:00:14
问题 I will really appreciate if anyone can help me with this issue that has been bugging me for days. I have a hybrid app created using the Ionic framework, which I have implemented push notifications on (via phonegap-plugin-push). The push notifications work fine, but what I want is for the push notification (i.e. GCM payload) to send a badge count/number over to the application, and the application will take that count/number and displays it as a badge beside the app icon. My code works