Is rectangle
defined? createGesture
will not work if you pass null
to el
.
How do you use Gestures API in a Vue Component?
How do you use Gestures API in a Vue Component?
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?
You can use the mounted
lifecycle hook if you want to set your gesture up as soon as
possible:
onMounted
Composition API: Composition API | Vue.js
mounted
Options Hook: Lifecycle hooks | Vue.js
Push Notifications with Image
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
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
yes, at the end i was able to get it working.
i followed this guide:
Css and html tags are not implemented on pdf generated in vue ionic
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
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
Streaming-media play video in div instead of full screen
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
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
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
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
- Reduce the number of pages (make use of dynamic pages if you are using static content)
- 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
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
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
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
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
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
Okay, resolved this by using custom hooks:
onIonViewWillEnter,
onIonViewDidEnter,
onIonViewWillLeave,
onIonViewDidLeave
Popover Uncaught (in promise) TypeError: Cannot read property '__props' of undefined
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
I have a link that downloads a .m3u8 file. Should I use Cordova Media Plugin: Record and Play Back Native App Media Files ?