Quantcast
Channel: Ionic Forum - Latest posts
Viewing all 230284 articles
Browse latest View live

Ionic build for release not working,debug apk is working

$
0
0

Still the same… doesnt work the release when i downloaded it from google play


Ionic Paypal plugin not working in build apk

$
0
0

I fixed this solution, After doing some research i found that the issue was with the comaptibilty of the the paypal plugin and the android version I was building for.
I was building the app for Android 8 , to fix I built the app for Android 7 and that solved the problem for me.

Loginform not working until the page is being reloaded

$
0
0

Thank you for your answer. I checked the console now this is what I can see:

common.js:290 Native: tried calling StatusBar.styleDefault, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator

Native: tried calling SplashScreen.hide, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator

Navigation triggered outside Angular zone, did you forget to call ‘ngZone.run()’?

Ionic 4 Tab to page then back to Tab did not trigger ionViewWillEnter [Solved]

Introducciones en español - Spanish Introductions

$
0
0

hey @perry do we have any updates about this? I just want to be sure that I did not miss anything regarding this matter.
Thanks!

Method of payment

How can I constrain the height of an [RESOLVED]

$
0
0

I love you, you saved my life, wow easy and fast, really thank you so much

IONIC 4 Android Pie cant access internet?

$
0
0

I have got the same problem with Ionic 3.


Cordova ionic app not working on Android 9 Pie

$
0
0

Application not working on android 9 devices, works perfectly fine on android device with version less than 9.
Application doesn’t connect to backend upon loading the landing page.
Any ideas ?

Environment I am using :
Ionic:

ionic (Ionic CLI) : 4.0.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.6
@ionic/app-scripts : 3.2.4

Cordova:

cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 8.0.0

System:

Android SDK Tools : 26.1.1
NodeJS : v8.10.0 (/usr/bin/node)
npm : 6.9.0
OS : Linux 4.15

Environment:

ANDROID_HOME : /home/aviral/Android/Sdk

Ionic FirebasePush Notification Received but not Showing on IOS

$
0
0

Hi, I’m sending push notification through firebase cloud messaging. On android it’s working fine but on ios not. on the Xcode console I see that the message is received but nothing is shown. on iPhone when I go to setting of my app I cant find notification page.
I have already set all certificate

my code

async getToken(user) {
    let token;
    if (this.platform.is('android')) {
      token = await this.firebase.getToken();
    }

    if (this.platform.is('ios')) {
      token = await this.firebase.getToken();
      await this.firebase.grantPermission();
    }
    
    this.saveToken(token, user);
  }

Ionic Video Streaming

$
0
0

Sorry. I’m not too sure about this. The azure media player stuff was set up by another developer. I just used the stream.

Loginform not working until the page is being reloaded

$
0
0

Edit: Thanks again Rapropos for your answer. After checking the console i found out that the problem was this:

Navigation triggered outside Angular zone, did you forget to call ‘ngZone.run()’?

By doing this in my Authguard fixed the problems:

    this.zone.run(() => this.router.navigateByUrl('login')).then();

Hide Taksbar Completely

$
0
0

Hello, I need to hide my taskbar. But I do not wish to behave like Auto Hide. Once hidden it should not be seen even if I move my mouse on it. Any idea as to how to achieve this?
Thanks in advance.

Load remote data from json

$
0
0

i am developing a hybrid live streaming app in ionic4. i have to load remote data from json to get url of my chennal for live streaming. I am using http method to get data from json but i am getting error of “No ‘Access-Control-Allow-Origin’ header is present on the requested resource.” So that’s why i am using CORS policy of IONIC to avoid this error. But now i am facing error of " Types of property ‘headers’ are incompatible. [ng] Type ‘Headers’ is not assignable to type ‘HttpHeaders | { [header: string]: string | string; }’. [ng] Type ‘Headers’ is not assignable to type ‘{ [header: string]: string | string; }’. [ng] Index signature is missing in type ‘Headers’."

I am using http method to get data from json but i am getting error of “No ‘Access-Control-Allow-Origin’ header is present on the requested resource.” So that’s why i am using CORS policy of IONIC to avoid this error.

Function to load data:##

reddit-data.Service.ts:##

getRemoteData(){const headerDict = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Access-Control-Allow-Headers': 'Content-Type',}const requestOptions = {                                                                                                                                                                                 
headers: new Headers(headerDict), };
      this.http.get("url" ,requestOptions).subscribe((res) => {
   //console.log(data);
err=>{console.log(err)}});}

homepage.ts###

ngOnInit() {
this.redditService.getRemoteData();
}

I am getting error of header:###

[ng] ERROR in src/app/services/reddit-data.service.ts(56,75): error TS2345: Argument of type ‘{ headers: Headers; }’ is not assignable to parameter of type ‘{ headers?: HttpHeaders | { [header: string]: string | string; }; observe?: “body”; params?: HttpParams | { [param: string]: string | string; }; reportProgress?: boolean; responseType?: “json”; withCredentials?: boolean; }’. [ng] Types of property ‘headers’ are incompatible. [ng] Type ‘Headers’ is not assignable to type ‘HttpHeaders | { [header: string]: string | string; }’. [ng] Type ‘Headers’ is not assignable to type ‘{ [header: string]: string | string; }’. [ng] Index signature is missing in type ‘Headers’.

Deferred deeplink : Best solution?

$
0
0

Hi everyone

Among deferred deeplink solution, there’s few players :

Do you have any feedback on which one is the best ?

Other features like analytics are not required. I’m focusing on deferred deeplink.

Thanks


Expandable Sidemenu

$
0
0

Hey folks,

does anyone know how to use a split pane as an expandable sidebar? For example the small sidebar should only show icons (width aprox. 60 px) and once you expand the sidebar it should contain icons and text (width aprox. 240px). The content panel width should be resized in both cases.

It’s possible by css and animations for expand and reduce, but it’s not very nice. Does anyone have a better solutions for this?

Something like this:

Thanks in advance,
Oliver

Load remote data from json

$
0
0

Solutions

1.At your server side you need to implement CROS so that server should accept request from
different origins.
In Ionic whenever we calling api and if request is from Android then origin address is
http://localhost but when we are doing it from iOS then its
ionic://localhost.

So you need to define it in your server side with CORS rules that server should response to
request which comes from http://localhost or ionic://localhost.

Then it should work

2.Another workaround is use Native HTTP to call api.Sometimes angular http not working in Ionic
for iOS and Android.
That time we can use native http plugin

import { HTTP} from ‘@ionic-native/http/ngx’
Give it try hope it helps.

Expandable Sidemenu

$
0
0

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

Update new date function

$
0
0

ı am using ionic 3 and ı should update new Date function in the constructor.

export class HomePage {
private eventDate: Date = new Date(‘July 17, 2019 03:24:00’);

constructor(){

//how can ı put new date into new Date function.

}
}

Como soluciono ese problema ?

Viewing all 230284 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>