ionic3

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

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

How can Ionic be setup to render in the iOS style by default?

房东的猫 提交于 2019-12-23 12:17:14
问题 Right now the ionic app renders with android styling by default. Instead of using the ?ionicplatform=ios param every single time I'd like that to be the default option. I looked for hints in the config.xml as well as the config settings in app.module.ts such as: IonicModule.forRoot( MyApp, { swipeBackEnabled: true, platforms: { ios: { swipeBackEnabled: true, statusbarPadding: false } } } ), and was unable to find an elegant way of doing it...Any ideas? 回答1: You just need to do this: app

Firebase + Ionic3 Error: disallowed_useragent

只谈情不闲聊 提交于 2019-12-23 09:29:53
问题 There are a couple of other questions/answers on this topic, but they were not using Firebase with Ionic. I just switched to the new Ionic View and right now today, my app in the old Ionic View works while the new Ionic View gives me this well known error: 403 Error - Thats an error. Error: disallowed_useragent his user-agent is not permitted to make an OAuth authorization request to Google as it is classified as an embedded user-agent (also known as a web-view). blah blah blah In my code I

Debugging sporadic app crashes with dylib in iOS13/iPadOS 13

空扰寡人 提交于 2019-12-23 09:27:01
问题 After updating to iOS 13.x / iPadOS 13.x we see sporadic crashes with our recent Testflight builds. We've not seen reports from users using our pre-13 released version yet, but it seems not many have updated to 13 yet, so we really don't know. The app is a cordova-app with cordova-ios 5.0.2 using WkWebView. Data protection entitlement is set to full. I have a hard time making sense of the crash, and it seems to be somewhere deep in the iOS-stack? The crash is sporadic and seems only to happen

RXJS: TypeError: this._subscribe is not a function

核能气质少年 提交于 2019-12-23 07:36:12
问题 I'm migrating an ionic 3.8 app to 3.9.2. This migration includes an update to RXJS 5.5 I'm now experiencing this error: TypeError: this._subscribe is not a function. (In 'this._subscribe(sink)', 'this._subscribe' is an instance of t) After hours of debugging, I found out that this code portion is related to the error: protected observeConnectionState() { // rxjs/observable/of of(new Event('disconnect')) .pipe( // rxjs/operators/merge merge(connect$), merge(disconnect$), // Map eventname to

RXJS: TypeError: this._subscribe is not a function

大憨熊 提交于 2019-12-23 07:36:01
问题 I'm migrating an ionic 3.8 app to 3.9.2. This migration includes an update to RXJS 5.5 I'm now experiencing this error: TypeError: this._subscribe is not a function. (In 'this._subscribe(sink)', 'this._subscribe' is an instance of t) After hours of debugging, I found out that this code portion is related to the error: protected observeConnectionState() { // rxjs/observable/of of(new Event('disconnect')) .pipe( // rxjs/operators/merge merge(connect$), merge(disconnect$), // Map eventname to

ionic 3 modal full screen width/height for a single modal?

白昼怎懂夜的黑 提交于 2019-12-23 07:29:21
问题 I'm working with ionic modal, I want to resize my modal to full screen, not all the modals but only 1 modal but unable to achieve this as ionic itself is setting width/height properties with !important attribute. I've tried to so something like following @media only screen and (orientation: landscape) { ion-modal { .modal-wrapper { position: absolute; top: 0 !important; left: 0 !important; display: block; width: 100% !important; height: 100% !important; } } } when I put this within scope of

IONIC 3 - Admob Free not displaying Ads when testing is false

瘦欲@ 提交于 2019-12-23 06:57:04
问题 I have a problem with Ionic 3 when trying to display ads with Admob Free plugin. My Ads will only show in test mode (isTesting: true). If I set it to false or comment the line, no Ads ... This is my code: showBannerAd(){ const bannerConfig: AdMobFreeBannerConfig = { id:'BANNER-ID', autoShow: true, isTesting: false } this.adMob.banner.config(bannerConfig); this.adMob.banner.prepare().then(()=>{ //this.adMob.banner.show(); }).catch(err => console.log(err)); } If I uncomment the line this.adMob

file upload using IONIC native

≯℡__Kan透↙ 提交于 2019-12-23 05:58:12
问题 Brief Explanation: I am trying to use ionic native from android, Problem is , in console it says [object Object] Uploaded Successfully, but nothing is uploaded on my server. I checked network tab in browser, it is not even calling the upload url. Please check my code below. below is my home.html code: <ion-content padding> <ion-item> <p>{{imageURI}}</p> <button ion-button color="secondary" (click)="getImage()">Get Image</button> </ion-item> <ion-item> <h4>Image Preview</h4> <img src="{