I have created a Xamarin Forms PCL Project.
I have a SQL Server database and when my database table is updated, I want to generate a Push Notification for my Android as well as IOS Application.
I don't want to request the table again and again. Is there any other way?
I recommend using the azure but if you do not want to pay, uses Onesignal is free and works for android and ios.
For onesignal, here is a tutorial:
https://julianocustodio.com/2017/11/21/onesignal-push-notification/
You need to write background service in android & iOS which will keep checking the table in database after fixed intervals of time and will generate notifications from it.
Also you need dependency service so that you can call platform specific services from Xamarin.Forms
Related
How can I implement Login with Facebook & Login with Google in Xamarin forms using native code for Android & iOS?
I don't want to use a plugin. I want to use dependency service to implement native code in both Android & iOS in Xamarin Forms Project.
Well it's a pretty open question but you basically need to (atleast for the google login use firebase ):
Setup a new project in firebase with Authentication
Add nuget Xamarin.firebase.iOS.auth to your iOS project and xamarin.firebase.auth to your android project
create an interface in your shared code call it IFirebaseAuthentication
Implement the interface on each platform
Use your auth module with DependencyService.Get<IFirebaseAuthentication>(); from the shared code
You will find more details on step 1 and 4 here
https://www.lindseybroos.be/2020/03/xamarin-forms-and-firebase-authentication/
Happy coding
I am creating an iOS application using Xamarin Forms which is a copy of an Android application written in Kotlin.
There is a section that lists all the applications installed in the current device by the user. I want to implement the same functionality in the iOS application too.
Is it possible to get the applications list in iOS through Xamarin Forms?
This is impossible on iOS and it is not possible on Android either if you target latest API levels, so in some future when those API levels become required on Google Play you won't be able to do this.
This is a huge privacy issue, as having the list of apps may reveal something very personal and private and as soon as the app has it there is nothing that prevents it to send the info to the 3rd party server.
I am stuck... I was under the impression using Stripe in a Xamarin Forms application was easy, but that doesn't seem to be the case any more.
I have a Xamarin Forms (both Android and iOS) app that I want to integrate with Stripe for payments. I have an API which creates a Payment intent, submits the amount and currency etc using the Stripe.net NuGet extension, and returns a client secret... but it turns out, there is no Stripe client available to use this client secret.
There are Android and iOS native elements controls which I should be able to somehow include in my Xamarin Forms application or the use of a webview and using stripe.js.
Can anyone tell me which of these two options is most suitable? I have never used binding for including Android and iOS packages (I'm not clued up on the individual platforms) and the webview seems to me to be a poor UX... I'm only speculating, because I don't know... I'm hoping there is someone on here who has experience with Xamarin FOrms and Stripe who can point me in the right direction.
Thanks
Assumed I want to build an ToDo-list app for Android and iOS that uses RealmDB for storage and synchronisation. Would it be possible to use Realm in a ASP.NET based Web-Service as well to provide a webbased access to the ToDo-list?
Realm for .net requires Xamarin and it only runs on iOS and Android, although there is a popular issue requesting Windows support. It's not possible to use Realm in an ASP.NET application right now, but it's likely that this will be enabled soon.
Disclaimer: I work on Realm for Xamarin
I want to push notification to ios and android platform, my application is using onsen-ui and angularjs, my application backend is using PHP language.
At monaca, I use the MonacaPushNotifications plugin it works well, but according to my needs,I need to push different notifications to different users.
Then, I try workerman, but it just can push notification at web environment.
Anybody knows how to do it?Or is there has any other plugins can do it?It is better to push a notification in the backend depending on the data.
Thanks a lot