Quantcast
Channel: Ionic Forum - Latest topics
Viewing all 70439 articles
Browse latest View live

Sending files through MMS

$
0
0

@wokingphenix wrote:

Hey, I was wondering if anyone has a solution for sending files, vcard format to be exact, through MMS?

I’ve tried using the sms plugin and the social sharing plugin but neither of them are what I’m looking for.

There are sms plugin forks in github that will support images but not other files.

Any advice is appreciates. Thank you for reading my post.

TL;DR:
Plugin for sending vcard through mms?

Posts: 1

Participants: 1

Read full topic


Can`t refresh changes in my debug.apk

$
0
0

@andresgp wrote:

Hello everyone, I would like to know if someone has had a problem with updating changes in the debugable file “app.debug.apk” and how you have solved them,because in my case I make updates and recreate that file and when testing it in a physical device it shows it as if no change had been made.

Posts: 1

Participants: 1

Read full topic

Photo-gallery tutorial - theme page does not exist

Admob auto close in note9, note 8

$
0
0

@allthemyth wrote:

Hi, my admob ads are acting funny. They just auto close them self. At first they pup up as it should but automatically closes it self just after opening. But I have not change any code, it started to happen around 2 weeks ago. It was working just fine but all of my playstore app suffers from this not just one.
But i heard from the user, it is auto closing in note 9,note 8 but shows ads on s7 edge, Redmi note 4…

This is my one app


Why ads are auto closing?

Posts: 1

Participants: 1

Read full topic

File Downloader Plugin throwing error of 'no class found'

$
0
0

@nazehs wrote:

I have been attempting to use file transfer plugin and downloader plugin for the ionic native but each time i click on the download it will return with no class found. in spite of repetitive installation of both Cordova plugins. I want to be able to download a file from a remote server
based on this
file downloader

import { Downloader } from '@ionic-native/downloader/ngx';


constructor(private downloader: Downloader) { }

...

   var request: DownloadRequest = {
          uri: YOUR_URI,
          title: 'MyDownload',
          description: '',
          mimeType: '',
          visibleInDownloadsUi: true,
          notificationVisibility: NotificationVisibility.VisibleNotifyCompleted,
          destinationInExternalFilesDir: {
              dirType: 'Downloads',
              subPath: 'MyFile.apk'
          }
      };


  this.downloader.download(request)
              .then((location: string) => console.log('File downloaded at:'+location))
              .catch((error: any) => console.error(error));

Posts: 1

Participants: 1

Read full topic

Property 'alert' does not exist on type 'LoginPage'

$
0
0

@lily28 wrote:

Hi, I,m using ionic 4 to build a mobile apps. I got an error when I try to connect login and signup with firebase. But I got error Property ‘alert’ does not exist on type ‘LoginPage’ at line const alert = await this.alert.create. Can anyone help me with this?

import { Component, ViewEncapsulation } from '@angular/core';
import { NgForm } from '@angular/forms';
import { Router } from '@angular/router';
import { AngularFireAuth } from '@angular/fire/auth'
import { auth } from 'firebase/app'
import{ AlertController } from '@ionic/angular'
import { UserData } from '../../providers/user-data';

import { UserOptions } from '../../interfaces/user-options';



@Component({
  selector: 'page-login',
  templateUrl: 'login.html',
  styleUrls: ['./login.scss'],
})
export class LoginPage {
  login: UserOptions = { username: '', password: '', copassword:'' };
  submitted = false;

  constructor(
    public afAuth: AngularFireAuth,
    public userData: UserData,
    public router: Router,
    
  ) { }

  async onlogin (username: string, password: string) {
    this.submitted = true;
    
    try{

      const res = await this.afAuth.auth.signInWithEmailAndPassword(username +'@codedamn.com',password)
      console.log(res)
      this.router.navigate(['/tabs'])
    } catch(error){
      console.dir(error)
      this.showAlert("Error", "User not found")

      if (error.code =="auth/user-not-found"){
        console.log("User not found")
      }
    }
  }
  async showAlert(header: string, message: string) {
    const alert = await this.alert.create ({ // error is here
      header,
      message,
      buttons: ["Ok"]
    })

    await alert.present()
  }
}

Posts: 1

Participants: 1

Read full topic

Loading Google Calendar with Google Login

Ionic 4 ion-select is not opening select options

$
0
0

@umaiz wrote:

Im using ion-select in my page but when i click on select it will not showing option and then i cant click on input field also of other items . Also not opening the ion-select box to select the values.

<ion-content>

    <ion-item>
      <ion-label  position="floating" color="primary">Name</ion-label>
      <ion-input type="text"></ion-input>
    </ion-item>

    <ion-item>
      <ion-label  position="floating" color="primary">Phone Number</ion-label>
      <ion-input type="number"></ion-input>
    </ion-item>

    <ion-item>
      <ion-label  position="floating" color="primary">CNIC</ion-label>
      <ion-input type="number"></ion-input>
    </ion-item>

  <ion-item>
    <ion-label>Gender</ion-label>
    <ion-select placeholder="Select One">
    <ion-select-option value="f">Female</ion-select-option>
    <ion-select-option value="m">Male</ion-select-option>
   </ion-select>
   </ion-item>

</ion-content>

Is this is bug or any solution to fix it ?

Posts: 1

Participants: 1

Read full topic


Ionic 4 Input with icon

Convert image into multipart and send to post server with key in ionic3

$
0
0

@rajputsachin wrote:

convert image into multipart and send to post server with key value pair ionic3

// Destination URL
let url = AuthServiceProvider.URLBase+‘json_register.php’;

// File for Upload
var targetPath = this.pathForImage(this.lastImage);;

// File name only
var filename = this.lastImage;

var options = {
latitude: this.lat,
longitude: this.lng,
“securitycodenew”:AuthServiceProvider.SecurityCode,
photo : this.myphoto,
refer_from_email:’’,
fileKey: “file”,
fileName: filename,
chunkedMode: false,
mimeType: “multipart/form-data”,
params : {‘fileName’: filename},
headers: {
‘Content-Type’: undefined,
‘Authorization’: 'Bearer ’ + localStorage.getItem(‘access_token’)
}
};

const fileTransfer: FileTransferObject = this.transfer.create();

// Use the FileTransfer to upload the image
return fileTransfer.upload(targetPath, url, options).then(data => {
return data;
}, (err) => {
return err;
// alert(“Errrr”+ JSON.stringify(err));
});

in this i can’t understand that how to send values in key value pair like securitycode and how to send image in key pair.

Posts: 1

Participants: 1

Read full topic

Ionic3 w/ New Stripe v3

$
0
0

@calculi wrote:

Anyone else successful with Ionic3 and the new Stripe payment gateway integration?
I’m only using script src=“https://js.stripe.com/v3/
calling stripe checkout sessions to get sessionId then passing it to stripe redirectToCheckout.
everything goes smoothly and payment is successful, apparently i get stuck on the successURL redirect. problem is… it is a required parameter. I can’t close this redirect page(because its technically a webpage) to go back to my app.

Posts: 1

Participants: 1

Read full topic

Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin'] in ionic 4

$
0
0

@ShankarGuru wrote:

After installing these phone gap plugins:

ionic cordova plugin add phonegap-plugin-push
npm install @ionic-native/push

I am getting this error:

Below is my ./platforms/android/project.properties file

target=android-28

android.library.reference.1=CordovaLib

android.library.reference.2=app

cordova.gradle.include.1=cordova-plugin-firebase/starter-build.gradle

cordova.system.library.1=com.google.android.gms:play-services-tagmanager:+

cordova.system.library.2=com.google.firebase:firebase-core:+

cordova.system.library.3=com.google.firebase:firebase-messaging:+

cordova.system.library.4=com.google.firebase:firebase-config:+

cordova.system.library.5=com.google.firebase:firebase-perf:+

cordova.system.library.6=com.android.support:support-annotations:27.+

cordova.gradle.include.2=cordova-support-google-services/starter-build.gradle

cordova.system.library.7=com.android.support:support-v13:27.+

cordova.gradle.include.3=phonegap-plugin-multidex/starter-multidex.gradle

cordova.system.library.8=me.leolin:ShortcutBadger:1.1.17@aar

cordova.system.library.9=com.google.firebase:firebase-messaging:11.6.2

I know this is already asked question I tried all these solutions ,nothing worked for me.

Posts: 1

Participants: 1

Read full topic

How to open a local HTML file by window.open() in ionic2?

$
0
0

@siavashaflaki wrote:

I must open one local HTML file (ex: assets > test> test.html) with Safari. I do not want to use in-app Browser and instead I want to use window.open(). Is there any way to do this in ionic 2? if yes what would be the url look like?

Posts: 1

Participants: 1

Read full topic

Html tags in ionic 3, in typescript

$
0
0

@TaimoorMughal wrote:

I’m working on tags to be used in typescript on ionic 3. Here is the test code:

modalTest() {
    console.log('here');
     let data = "this is test <p> This is test </p>"
     alert(data);
  }

This is showing alert as it is written, but i want to show this in proper html form. Need help on this one.

Thank you.

Posts: 1

Participants: 1

Read full topic

Surface flinger

$
0
0

@meraki05 wrote:

@meta

Hi,
Does anyone is having knowledge of Surface Flinger ?
I want to find the exact code part for the layer through which I am getting my display’s last layer
and what should I change in the code to hide some pixels in the last layer.
Surface Flinger’s code is at /frameworks/native in the android source code.
Can anyone help?

Posts: 1

Participants: 1

Read full topic


Exclude ionic components from built files

$
0
0

@jlebras_lgce wrote:

Hello,

I use stencil to create a components lib. Many of my components use ionic components like ion-input, etc…

The problem is that the built files include many (or even all) ionic components.

When I use my “lib” in an existing app (Ionic 4 + Angular) I get an error tab with id "undefined" does not exist because the IonTabs used is the one bundled with my components lib.

Is there a way to exclude ionic components from stencil output, so the main app takes care of loading ionic components ?

Thanks

Posts: 1

Participants: 1

Read full topic

Attribute meta-data#com.google.android.geo.API_KEY@value at AndroidManifest.xml requires a placeholder substitution but no value for is provided

$
0
0

@serviceminder10 wrote:

When doing an Android build on AppFlow, I get errors while trying to build the AndroidManifest.xml file. My last good Android build was early April. I don’t have the build issue local. It happens with 2.6.2 of the cordova-plugin-googlemaps.

I’ve tried various combinations of the following:

Adding in the element:

This produces the “missing” error.

Adding in the platform tag for android:

    <config-file parent="/manifest/application" target="app/src/main/AndroidManifest.xml">
        <meta-data android:name="com.google.android.geo.API_KEY" android:value="xxx" />
    </config-file>

This produces both the missing and a duplicate. So I think the platform tag is maybe the way to go but I can’t find out where the empty element is getting added from.

I’ve seen a few posts with this error and either no solutions or have tried the solutions suggested – anyone have any ideas?

Posts: 1

Participants: 1

Read full topic

Apple new Guideline 4.7 - html5 banned?

$
0
0

@davgc wrote:

According to the new Apple guidelines from here: https://developer.apple.com/news/?id=06032019j

Guideline 4.7.** HTML5 games distributed in apps may not provide access to real money gaming, lotteries, or charitable donations, and may not support digital commerce. This functionality is only appropriate for code that’s embedded in the binary and can be reviewed by Apple. This guideline is now enforced for new apps. Existing apps must follow this guideline by September 3, 2019.

Do you think it will affect ionic applications or only those that load content in iframe?

Posts: 1

Participants: 1

Read full topic

Ionic cordova plugin add ionic-plugin-deeplinks Variable(s) missing (use: --variable URL_SCHEME=value --variable DEEPLINK_HOST=value)

$
0
0

@lautarolorenz wrote:

Hello

During the installation of “deeplinks” with the command
ionic cordova plugin add ionic-plugin-deeplinks fails:
Variable(s) missing (use: --variable URL_SCHEME=value --variable DEEPLINK_HOST=value).

Ionic:

Ionic CLI : 5.0.1 (C:\Users\coco\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.4.2
@angular-devkit/build-angular : 0.8.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.0.0, ios 5.0.1
Cordova Plugins : cordova-plugin-ionic-webview 2.2.3, (and 10 other plugins)

Utility:

cordova-res : 0.3.0
native-run : 0.2.2

System:

NodeJS : v10.0.0 (C:\Program Files\nodejs\node.exe)
npm : 6.9.0
OS : Windows 10

Posts: 1

Participants: 1

Read full topic

WebView on ionic 4

$
0
0

@Mazolo wrote:

Webview does seem to work for me, and I cannot find solution on the web:
this.webView.convertFileSrc(url); returns undefined/app_file/…
the rest of the file is correct. I want to load local videos so I can play them on videogular2 if possible. How can I do this?

I have the following settings: ionic info
Ionic:

Ionic CLI : 5.0.1 (C:\Users\thula\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.4.2
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1)
Cordova Platforms : android 8.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.0.1, (and 5 other plugins)

Utility:

cordova-res : 0.3.0
native-run : 0.2.2

System:

NodeJS : v10.16.0 (C:\Program Files\nodejs\node.exe)
npm : 6.9.0
OS : Windows 10

Posts: 1

Participants: 1

Read full topic

Viewing all 70439 articles
Browse latest View live


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