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

Ionic 3 Download Plugin How to Hide Source URI

$
0
0

I am using Download plugin on ionic 3 to natively download pdf file from an external source. Here is the code I am using.

var request = {
      uri: item.url,
      title: item.resource_title,
      description: '',
      mimeType: '',
      visibleInDownloadsUi: false,
      notificationVisibility: 1,
      destinationInExternalFilesDir: {
          dirType: 'Downloads',
          subPath: 'MyFile.pdf'
      },
      destinationUri: 'this.file.externalRootDirectory + ‘/Download/’',
  };


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

In the above code “item.uri” is an external download link like onedrive.com/demo.pdf

Now the problem is that whenever a user downloads this file, he can see the source url (onedrive.com/demo.pdf) in the download manager.

I was thinking is there a way we can hide this source uri or show some dummy text in the download manager. I can see that other apps like google and skype do that.


Unable to upload large PDF files using file transfer plugin in ionic 4

$
0
0

I would suggest simply using Angular’s HttpClient for this. The file-transfer plugin was sunsetted years ago and should be left to rest in peace.

Install production version of ionic 4 - I do not want ionic 5

$
0
0

While there is already an effort made by having it installed as @ionic/cli I suggest to rename the cli command to ‘clionic’

And issue an award for every 10th poster asking the question without bothering to search the answer on the forum

:crazy_face::crazy_face::crazy_face::crazy_face:

Send data from one component to other

$
0
0

If you have a data depending on a socket connection that needs to be shared, you should either be emitting data from that socket to some subscribers OR persisting that data somewhere for ‘other things’ to read.

here am unable to use same existed socket in chatHistory component

You cannot open multiple connections on the same server port from one client in this case because of some divine rules governing the unique identification of the connection. The local lovable(and appreciated) curmudgeon could probably expand upon this until you’ve either developed a career in network engineering, or lost interest.

If I were doing something like this I’d handle connection/disconnection/success/error logic in a service, and my components would subscribe to ‘stuff’ in that service depending on what they want to know(connection status, socket data…).

FCM Notification not showing when app killed on some devices

$
0
0

Sry this was my mistake, just in case my the mistake was this:

i just saw that the background notifications was enabled but this not is the capability of getting push notifications so i just added the cappability and run again.

Install production version of ionic 4 - I do not want ionic 5

$
0
0

Good news - we actually released Ionic CLI 6.0.0 under the npm tag @ionic/cli within the last week. This has been a long time coming and it took some convincing internally to get a more descriptive package name, but I think this will help in the future! We tweeted about this earlier: https://twitter.com/Ionicframework/status/1223268498362851330?s=20

The documentation on the site has been updated to reflect this: https://ionicframework.com/docs/installation/cli

The older package will live on since there are so many tutorials out there that use the ionic package, but this is a step in the right direction.

As for how to respond to any package confusion, I wrote up a response awhile back that may be helpful to link to:

Usually when we see incorrect packages being referenced we’ll recommend running ionic info from within the project as that gives the best overview of the different packages & their versions. Hopefully that helps. :slightly_smiling_face:

Ionic 5 - mobile address bar hiding

$
0
0

With Ionic 5, is there now a way to hide a mobile web address bar?
Either automatically when scrolling or forced?

Ionic 4 ng model doesn't working

$
0
0

Include FormsModule from @angular/forms both in your app.module.ts (and among the imports) and in the component.ts file where you’re using NgModel


Problems using Ionic on my PC - cannot serve a blank project

$
0
0

So the error message is complaining about an existing file. The first question I would ask myself is “did that file exist before I tried to run ionic start or not?”, and the test I would do to check that would be to make sure that the directory for the project I was planning to make does not exist before running ionic start. So can you do that? Completely remove C:\Users\stephen\test3 or move it out of the way and run ionic start again.

If the same error occurs, then something within the ionic start process is doing something unusual and further investigation is warranted. If it doesn’t, then I guess things are declared “fixed”?

Send data from one component to other

$
0
0

If you want to pass data from one component to another then you will need to be use modal controller.See:

Run Ionic 4 project on another computer

$
0
0

HI, try using ionic command with administrator cmd.And if it did not resolve the issue then try reset your pc.

Ionic 5 - mobile address bar hiding

$
0
0

Are you displaying the whole site in your app? if yes then you should not do it. You can create a PWA app for your website instead.

Ionic 5 - mobile address bar hiding

$
0
0

It is a PWA and I know I can make it fullscreen but I am not looking to do that.

I asked about this when Ionic 4 came out and there was no success.
This may be cross-posting but thought I would try it again with the recent release of 5.
Original post:

Ionic 5 - mobile address bar hiding

$
0
0

So start making PWA app and when you face any error then let me know and I will definitely help you.

Ionic 5 - mobile address bar hiding

$
0
0

It is not an error.
Do you know of a way to make the address bar disappear in a PWA - without making it go into fullscreen?


Ionic 5 - mobile address bar hiding

$
0
0

Please share a screenshot of what address bar you are talking so that I can help you.

Ionic 5 - mobile address bar hiding

$
0
0

On your mobile, open a browser, go to youtube and swipe up and the url address bar scrolls up and away.
To my knowledge this can’t be done with Ionic prior to 5.
I have no reason to believe it can now - but I am here asking.

Setting up a page that only appears once for new users

$
0
0

Add something like this on device ready in app component

If (storage value is empty){
show new user welcome page and add a value in storage } else {
show user first page }

Problem creating project in Ionic Studio

$
0
0

Hi Ionic ,
I have installed Ionic Studio and when I am trying to create a project it gives an error in the command line that No such file or directory image

I am also attaching the text file with log for reference.

Run Ionic 4 project on another computer

$
0
0

Did you add NodeJs and npm to your environment variables in windows?

Viewing all 228510 articles
Browse latest View live