Questions tagged [messagingcenter]

41 questions
0
votes
0 answers

Xamarin: shiny, push notification, and messaging center

I'm using Shiny for Xamarin and, in the end, I want to use OnEntry method to navigate to a specific page, for now I'm content with displaying the alert only. I'm trying to use MessagingCenter but it doesn't work with background notifications. public…
0
votes
1 answer

Issue with MessagingCenter firing multiple times Xamarin

I have looked all over for a solution to an issue. I have noticed that in my android app, every time I fire an event from
tlf
  • 33
  • 11
0
votes
0 answers

How to save label value when app is closed and reopened when using Foreground Service

I have a foreground Service, which updates phonebook every 24h and uploads data from local databse to server every 2 minutes. I'm using MessagingCenter to get the exact time, when the data upload was successful and when the contacts were last…
Saraphin34
  • 17
  • 3
0
votes
1 answer

Nested subscription to messages on xamarin forms

I'm new with Xamarin forms and don't know how to deal with this case. I've tryed to implement it in several ways but with no success. I have a page where when user makes an action (write a text on a text box and send it with enter key) my app must…
Ev k
  • 1
  • 1
0
votes
0 answers

Visual UI events handling (EventAggregator or MessagingCenter)

I have written two custom Behaviors that I call DragBehavior and DropBehavior. DragBehavior adds a PanGestureRecognizer to it's attached view, and translates it according to the Pan Events it receives. Also, while being dragged, DragBehavior emits…
Miguel
  • 143
  • 1
  • 7
0
votes
2 answers

awaiting multiple calls using Models

I have a project. I'm working on where a user can have multiple accounts tied to his/her profile. However, to get the account number and account name, there is an endpoint to call. To get the account balance for each account number, there is another…
DevLayi
  • 55
  • 10
0
votes
2 answers

Xamarin - How to trigger an animation using a MessagingCenter

I have a ContentView that is subscribed to a MessagingCenter message from a ViewModel (In order to maintain the mvvm pattern by not coupling the view to the viewModel). When the message is received by the ContentView I wanted it to perform an…
Jc781
  • 21
  • 4
0
votes
1 answer

Xamarin messaging center subscribing multiple times

I'm dealing with a page that needs to send information to another and I'm doing this through messaging center but I noticed that messages are being sent once and received 2,4,6 times... depending on how many times I opened the subscriber page. The…
Éder Rocha
  • 1,538
  • 11
  • 29
0
votes
1 answer

Xamarin Message Center Multiple Of The Same Message Different Results

I'm making a timer app, so backgrounding is super important. The way I am doing it is through this method outlined in this link. https://robgibbens.com/backgrounding-with-xamarin-forms/ Basically a loop of Ticked messages and updating the…
0
votes
0 answers

MessagingCenter catching message twice

I am trying to use the messaging center to send a simple string through the messaging center. And it works. But for some reason, despit only sending one message, it's caught twice. Here's the sending page: protected override void OnAppearing() …
Elgate
  • 113
  • 2
  • 11
0
votes
1 answer

Problem with Messaging Center when using it in OnCreate (Android) or AppDelagate (iOS) [Xamarin.Forms]

I am using the Messaging Center to send and receive messages/data throughout the app. The app handles custom file extensions and loads them into the app and work on those files. There are two ways to import files into the app: 1- Pushing the Browse…
Omer
  • 23
  • 10
0
votes
1 answer

MessageCenter subscription method does not happen

I've never worked with Message Center before and probably make some ridiculous errors when passing messages between apps. I try send message from Xamarin.Android to Xamarin.Forms. Xamarin.Android project…
0
votes
1 answer

Why this method isn't being waited?

I have a popup window using rg plugins popup extension that should to send a boolean using messaging center but the method which calls this popup never waits for the result. Below you guys can see DisplayAlert.cs file, it has a method that shows up…
Sandro Benevides
  • 581
  • 2
  • 14
0
votes
1 answer

Xamarin.Form How to use Rg.Plugins.Popup Pages in MVVMCross?

I want to create a popup using a plugin called rg.plugin.popup on mvvmcross, But don't know how to implement it. I've tried it on regular xamarin.form and it works. This is what I've tried to navigate it on MVVMCross: public IMvxCommand…
Machtal
  • 27
  • 1
  • 8
0
votes
1 answer

Can i pass an variable TSender in a MessagingCenter?

I'm trying to do this with this examples: public void Method1(object someClassAsTSender, object parameter) { //i think parametertype = parameter... MessagingCenter.Subscribe (this, "messageKey", (message,…
MATCH
  • 100
  • 10