Even though Clickable Span is not supported in {N}, but is there any workaround for this?
I have read the following thread but still don't really know how to implement on NativeScript-Vue, may anyone help, please?
Feature request: ClickableSpan support for iOS and Android
Nothing changes with Vue except the fact everything will be JS and event handlers will follow Vue syntax.
Here is the Vue implementation of the same demo project. I was able to test it on Android, not having access to iOS device ATM. Let me know in case if you hit any issues.
Update:
Updated playground link with fixes for iOS
Related
I swear I have thoroughly searched.
Ionic, (btw, only Capacitor works for ios, and only Cordova for android, -just cordova, or just capacitor won't work for both-, and... some cordova is still needed for ios-capacitor to work, but I was able to make all work nice, and publish in both stores, and working on both devices, though issues may happen depending on the plugins you need... feel free to comment).
Then I added chart.js, and in Android, it´s all ok on device, but when testing on an ios device, charts are blank.
No chart.js code sample needed here, as the code is just the same you can find in a simple google search, it may as well just be copy-paste and works fine as just mentioned.
As close as I've come is to figure it may have something to do with the canvas tag, I simply use
<canvas #someCanvas></canvas>
but it may be needed to add some other properties to this tag, for it to work on ios device.
Any help/thoughts, please? Thanks :)
Chart.js dropped support for older browsers so you might have to pollyfill the resize observer and maby some features.
Source: https://github.com/chartjs/Chart.js/issues/8414
I faced off a problem that I can't solve. I've searched on the web before posting this but I found nothing really useful for me.
Straight to the point. This is the problem, I have a ion-searchbar that does not receive keyboard input in Android device. I run that with ionic cordova CLI and the build was successful.
Please help me, all the other features of the app work well, I only have to fix this.
<ion-searchbar [(ngModel)]="searchedText" [showCancelButton]="shouldShowCancel"
(ionInput)="onInput($event)" (ionClear)="onCancel($event)"></ion-searchbar>
That searchbar does not receive any character of my keyboard input.
If I run it on local with ionic serve it works instead.
What could be the problem?
Found the solution.
I put that searchbar in ion header instead of ion content. I changed that and then it worked.
I'm trying to hide my app or change the icon and name after the user takes some action, I don't know if there's a way to do this because the main idea is the app looks unnoticed for other users besides the phone owner.
I've been reading some things about how to do this on android but I can't find anything on ionic or cordova, so I'm looking for some guidance to do this
I hope you can help me!
I don't understand why you would need to change the app icon or name depending on what the user does, but even then, all of the things I have read conclude that there is no way to do this, at least on iOS.
You can check out some similar questions here, here and here. Although I must admit that these resources are quite outdated. Regarding your question, the only technology within Ionic that would be able to do this is Cordova and if it is not possible natively, which seems to be the case for iOS, then there is nothing that Cordova can do.
If you have found a way to do this on Android, then you would have to build your own Cordova plugin to handle it, because there doesn't seem to be anything out there that can do this.
you can do this on iOS 10+. check this out:
https://github.com/EddyVerbruggen/cordova-plugin-app-icon-changer
haven't been able to find a solution for Android yet, if it is possible at all.
I am developing a Cordova 3.0.0 application which needs to periodically show notifications to the user. They need to be the kind of notifications that live in the notification center on iOS; modal popups aren't good enough as the app may be running in the background at the time.
The built-in Notification plugin only provides modal popups: http://docs.phonegap.com/en/3.0.0/cordova_notification_notification.md.html
I have seen 3rd party plugins, such as this: https://github.com/DrewDahlman/Phonegap-LocalNotification
- however, they are developed for much older versions of Cordova/PhoneGap.
Is it possible to use any of these with Cordova 3; or is there a better way to do it (device-independently if at all possible, as I need to have similar behaviour on Android as well as iOS); or would my best option be to downgrade to an older version of Cordova?
Thanks
Drew Dalhman's Plugin still has some Issues. For example cancel() and background callback do not work.
This one, from Sebastián Katzer is updated and works with Cordova 3+ :
https://github.com/katzer/cordova-plugin-local-notifications
for iOS, Android and WP8
According to the issues for Drew Dalhman's plugin some people have had some success using that plugin in Cordova 3.0.6:
https://github.com/DrewDahlman/Phonegap-LocalNotification/issues/18
Rather than downgrading to an earlier version I'd look to see if a pull request can be created for the plugin. This will help everyone and will allow you to take advantage of Cordova improvements.
I was actually researching this same issue earlier for Android. Not implemented anything yet, but this tutorial seems to have some useful information (Part 3 is most relevant to showing notifications):
http://red-folder.blogspot.co.uk/2012/09/phonegap-service-tutorial-part-1.html
I googled but couldn't find anything.
My suggestion would be that you write your own plugins/extensions for Android and IOS respectively. It isn't difficult. The problem with writing your own IOS plugin is that you need to have a mac and iphone/ipad. Also, try the Phonegap-LocalNotification plugin you mention, it could possibly work.
I tried the Facebooklike plugin as showed in Like Box with android browser using PhoneGap, to my surprise the scroll didn't work at all. No scrollbars appeared and find no way to scroll the contentin webkit.
Anybody tried this, did figure out a solution?
Thanks
I think the like function is about to be deprecated or merged with the share functionality. Try using the share method using facebook's android library http://developers.facebook.com/docs/guides/mobile/#android