Is there any way to generate toast message in Oracle-MAF like in android or IOS ? I gone through some blogs but didn't find any.
You could create this pretty easily with some Javascript and CSS, see Show an Android style toast notification using HTML/CSS/JavaScript
Or you can also use a Cordova plugin, see: https://github.com/EddyVerbruggen/Toast-PhoneGap-Plugin
Related
I am developing an Xamarin.Forms app for Android and iOS, that requires me to implement local notifications. I have done this using the Local Notifications Plugin for Xamarin and Windows, https://github.com/edsnider/LocalNotificationsPlugin and it works fine. I get the notifications as I am supposed to, but I was wondering if there is a way to add actions/commands to this, type 'buttons' for accept/decline, like you can do in pop-up and dialogs. I don't know if this can be done using the plugin I am currently using, or if there is another plugin or something else that I can use instead.
Any help or advice would be greatly appreciated.
Thanks
On Android, you can custom the notification's layout to achieve your goal.
I have found some links for you, this is about how to Create Custom Notification Layout, and here is creating custom notification with xamarin.android
.
As you can see, on Android, the notification's layout is RemoteViews, it is not a normal view,you need setCustomContentView method for you notification.
I have a Xamarin.Forms application that I would like to enable as a text and/or URL share target. I've done this in a Windows UWP app by handling OnShareTargetActivated, but I don't see an equivalent in Xamarin.Forms. I am willing to use compiler directives if needed; I would prefer that to doing iOS/Android/Windows specific things in the corresponding projects themselves. Right now all my code is in the Xamarin.Forms project and I'd like to keep it that way.
Unfortunately Android and Ios do not have a similar share event so there is no equivalent event in xamarin forms.
I'm building an app in NativeScript {N} where I'm implementing a webview.
All of this is working fine, but in my webpage, I would like to get some JS debug statements. How can I see the webview console.log output?
Previously I was able to "inspect" it through Safari, but that option is not presented in the "Develop" menu anymore.
If like me you could not figure out how to do this using the webview proivded by nativescript you'll need to install this plugin to get what you need.
https://github.com/shripalsoni04/nativescript-webview-interface
I provides a lot more features more than the stock. Basically, it allows you to emit events to the android from the webview layer. The author provides a good tutorial on this.
Hell. I'm just write my first mobile app and I use XamarinForms
So I try understand to understand how work push notification here....and i'm a little bit confused
So this is what I understand
For android I MUST(!) use google cloud messaging - right?
For iOS - I MUST(!) use Apple Apple Notification Push Service - right?
Now my question:
If I use xamarin forms - i write 1 code to 2 platfoms andoid/iOS - right??
so how i can write 1 code both for gcm and apple notif????
How I think - but not sure - I need write interface in my PCL and then write separate implementation in each platform??
This is write way??
Why I need Push notifications?
I have app and when admin attach task to user - he will get notification about he has new task.
Or when user use app - real time get new data - new task
So if you can give me a tips - thank you.
Sorry for my English grammar)
Thank you.
Take a look to this plugin https://github.com/rdelrosario/xamarin-plugins/tree/master/PushNotification in the description you can find the proper setup for each platform.
Also keep in mind that even if you're using Xamarin.Forms you will need to know how works push notifications on each platform.
Android. https://developers.google.com/cloud-messaging/
iOS. https://developer.apple.com/notifications/
is you have any specific question about it pls let me know
Azure has "push notification hub" that plugs into both iOS and Google
Try that. Once youve set it up it will push stuff to google and to apple.
How to implement such appearance for notification card using Android Wear SDK?
Demo video — http://youtu.be/tKoQatxG0_8?t=26s
It has the same custom layout in preview and active mode. But I cannot achieve such behaviour using setDisplayIntent and related API for creating custom layouts. I checked samples of wear apps from SDK, it also has different views for preview and active mode of custom layout notifications.
Oh no!
Right now it's hidden API, so Google can make such appearance for standard apps, but other third-party developers are out of the board.
Confirmed by +Wayne Piekarski — https://plus.google.com/u/0/+BenoitBoDLubek/posts/2o4SVBhWg5z
So the answer is impossible at current moment.