Xamarin.Forms - Push notification for iOS and Android - xamarin

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.

Related

Voip or voice call record - Xamarin.forms

I am trying to develop a xamarin.forms app which have the functionality to make call and record it.Why I am writing this question is I want some clarifications regarding this.I cant find a proper solution on web.
1 The app workflow will be like this. When user tap on the number on my app it will open the dialer (in Android and iOS). User will complete the call and return back to app.The app will get the call record and store it.
Is this scenario possible with Xamarin.forms? If possible, any links will be appreciated.
2. Suppose the above scenaerio is not possible, then what will be the best approach? I heard about Twilio voip call sdk for xamarin. Is Twilio really support voip call for xamarin? I found these links, but it seems outdated.
https://www.twilio.com/blog/2014/11/twilio-client-for-xamarin-part-3-android.html
https://www.twilio.com/blog/2014/10/twilio-client-for-xamarin-part-2-ios.html Is there any other voip sdk available which will fullfil my requirement.Any help is appreciated. Because I have been stuck on this for days.
EDIT If I implement Twilio calling in web and calling it as a webview in mobile.Can I make work above scenario?

How do I know a xamarin application has push notifications?

I have started to work in a xamarin application. It has not been developed by me. How do I know this application has push notifications?
Thanks, in advance.
On Android check the AndroidManifest to see whether C2DM/GCM/FCM has been set up. Usually this would be several permissions having to be added for this to work.
Similarly on iOS the Info.plist/Entitlements.plist will need to include push notifications capabilities and there will also be implementation of the receiving part in the AppDelegate class.

Push notification in xamarin cross platform

I would like to add a Push Notification to a Xamarin Cross Platform application.
My application has MaterDetailPage on the Portable layer. When a notification comes in, I want it to appear as "Messages (1)" in the menu.
How can I do that?
There is no way to do it in cross platfrom, you'll have to implement some custom renderers, as Google and Apple have different ways to implement that.
A nice component for implementing that is https://components.xamarin.com/view/azure-messaging but rememeber that you'll also have to do some backend work.
Regardless of how you decide to implement push notifications, if you intent to develop for iOS I would recomend reading https://developer.xamarin.com/guides/ios/application_fundamentals/notifications/remote_notifications_in_ios/ as you'll probably have some trouble with the certificates/provisioning.

Is it possible to implement dynamic notifications on Apple Watch without a launchable app?

I've designed a custom notification for an app I'm working on for Apple Watch. The notifications look good but because of the current technical limitations I don't want to build a launchable app or glance until I have mic and speaker access. Is it possible to display dynamic notifications without having an app icon on the home screen of the watch or is the watch app mandatory to have a dynamic notification at all?
No, you will need to add a dynamic Notification scene in your Watch app.
If you want to read more information about this I'd refer you to this page:
https://developer.apple.com/library/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/CustomzingthePushNotificationInterface.html#//apple_ref/doc/uid/TP40014969-CH6-SW1

windows phone push notification on tiles

i would like the app that i have created on wp7 to display alerts on the live tiles. I was going to use push notifications to do this. So, whenever there is an alert, the app will produce a push notification and then the live tile would display the push notification alert. I have tried to find sample codes on msdn and i have not found much. Does anyone know any code sample for wp7 that would help.thank you!
MSDN has extensive howto articles and sample code; there is even a How to: Send and Receive Tile Notifications for Windows Phone which sounds like it should do what you need.
This may be of help to you: Windows Phone 7 notifications. I went to a Windows Phone camp and came away feeling that there are, in fact, very distinct notifications and you have to make sure you're working with the right type for the right job. That link covers the types and their purposes, but did want to give you a heads up on that.

Resources