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

How do you use Gestures API in a Vue Component?

$
0
0

Is rectangle defined? createGesture will not work if you pass null to el.


How do you use Gestures API in a Vue Component?

$
0
0

The line const rectangle = document.querySelector('.rectangle'); selects it on my div, but you are right, it is null. I changed it to ionViewDidEnter() and no error. I got my life cycle hooks mixed up.

Any recommendation for a better place to declare gestures than ionViewDidEnter()?

How do you use Gestures API in a Vue Component?

Push Notifications with Image

$
0
0

I’m having a lot of trouble getting a notification service extension set up.

When you created the notification service extension, do you remember if you added the extension as a project embedded in your app, or as a pod?

Also, did you have to deal with this error message:

Use of undeclared identifier 'FIRMessaging'

I’m getting that from the line in the FCM documentation:

  // Call FIRMessaging extension helper API. 
  [[FIRMessaging extensionHelper] populateNotificationContent:self.bestAttemptContent withContentHandler:contentHandler];

Push Notification with images and iOS

$
0
0

Did you ever get this working? I’m also trying to create a push notification service extension per the FCM and Apple documentation, but I’m getting the error:

Use of undeclared identifier 'FIRMessaging'

I’m just trying to get images to display in an iOS push notification.

Push Notification with images and iOS

Css and html tags are not implemented on pdf generated in vue ionic

$
0
0

I am using this ionic package to generate pdf file

https://github.com/cesarvr/pdf-generator

Pdf is generating but it seems like html tags and css is not applied on pdf it seem broken

enter image description here

I am generating pdf like that. I am getting outer html of vue component and then generating pdf from that but thats not happening correctly

 let options = {
        documentSize: "A4",
        type: "share",
        fileName: "myFile.pdf",
      };
 console.log(this.$refs.order.$el.outerHTML)
      PDFGenerator.fromData(`<html lang="en"><head></head><body><div id="app">${this.$refs.order.$el.outerHTML }</div></body></html>`, options)
        .then(() => "ok")
        .catch((err) => console.log(err));

Streaming-media play video in div instead of full screen

$
0
0

Hello there!

I am using @ionic-native/streaming-media/ngx and cordova-plugin-streaming-media for play video streaming in my ionic app.

My goal is reach something like this

I dont see an option to play a video in a div instad of open it in fullscreen… any advices?


Streaming-media play video in div instead of full screen

$
0
0

I mean, you don’t need that plugin to do this. If you have a video source, you can just set that as the source for that given video element.

Css and html tags are not implemented on pdf generated in vue ionic

$
0
0

So the html you are passing does not include any css/javascript in the head tag. So not seeing any styles makes sense. I’m not sure this is something that will possible with the pdf generator

Css and html tags are not implemented on pdf generated in vue ionic

$
0
0

what should I do here any suggestion? i see docs but didn’t find anything helpful

Ionic 3 app taking huge time to run and build

$
0
0

200 pages is a lot…like REALL a lot. You basically have to compile each file in order to build the app. So your general options here are

  1. Reduce the number of pages (make use of dynamic pages if you are using static content)
  2. Update to the latest Ionic/Angular releases. The build tools on v3 have not been updated in some time because we want people to move off of v3. Upgrading to Angular 12 and Ionic 5 gives you not only a faster build process, but a much better developer experience.

Css and html tags are not implemented on pdf generated in vue ionic

$
0
0

I tried to use ionic css cdn but it gives me black blank page

Css and html tags are not implemented on pdf generated in vue ionic

$
0
0

Not really much you can do. If the pdf-generator is not giving you an option to include the JS/CSS, then you are at a dead end. Best bet is to rethink what you are trying to do.

React + Ionic 5 and routing

$
0
0

Do you have a simplified example in a github repo? What you have shared doesn’t really provide any context.


Ionic React: Going back IonTabs to another IonTabs error

$
0
0

Can you generate a sample github repo with a project? It’s very hard to understand what is going on from just what you’ve provided.

Axios API calls not working on iOS

$
0
0

I have built a vue and capacitor app using axios for http requests. On Web and android the app can make get and post requests fine but not on iOS, they just seem to fail or be cancelled with no error returned. Has anyone experienced this before?

Unrelated view is mounted

$
0
0

Okay, resolved this by using custom hooks:

  onIonViewWillEnter,
  onIonViewDidEnter,
  onIonViewWillLeave,
  onIonViewDidLeave

Popover Uncaught (in promise) TypeError: Cannot read property '__props' of undefined

$
0
0

the only solution i had with this is that you cannot use mixins with modalControllers, so i had to rewrite the modal instance in each component I want to call.

Streaming-media play video in div instead of full screen

Viewing all 228535 articles
Browse latest View live


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