Questions tagged [messagingcenter]

41 questions
0
votes
1 answer

Is it possible to use MessagingCenter or Intents with Xamarin.UI tests?

I am writing Xamarin.UI tests for my Xamarin.Forms application. I am wondering if it is possible to simulate messages from MessagingCenter with tests? Or maybe send an Intent that will be captured by the Android application? I would like to simulate…
Denis Vitez
  • 608
  • 11
  • 32
0
votes
0 answers

Xamarin forms: Issue with messaging center value passing

I am passing an id value through MessagingCenter. The value is passing from Android Mainactivity and subscribed on the PCL ChatPageviewModel. Please see below code: // Sending group Id through the MessagingCenter on android…
Sreejith Sree
  • 3,055
  • 4
  • 36
  • 105
0
votes
1 answer

Xamarin MessagingCenter callback not being called

I am implementing device orientation detector using Xamarin MessagingCenter. What I would like to do is to send messages from my MainActivity in Android project to a Singleton class implementation inside my .NET Standart project. As you can see I…
Alias
  • 341
  • 2
  • 3
  • 14
0
votes
0 answers

Xamarin Forms MessagingCenter not working

In short, it's probably something silly because I have other Messaging Centres throughout my code and I'm struggling to get this one to work for some reason. Here is the Subscribe. MessagingCenter.Subscribe(this, "UpdateList",…
0
votes
0 answers

Xamarin MessagingCenter not working for some pages

I'm using messagingcenter to send message from a viewmodel to another viewmodel, the destination content page can be accessed from master page only(by clicking on hamburger icon). message can be send successfully to the previous and next pages but…
Vipin Krishna
  • 355
  • 1
  • 4
  • 25
0
votes
1 answer

How to stop a timer/change system UI OnSleep Xamarin Android

So I have an app that on a button press: starts a timer, cycles through one (++) piece of data and hides the start button and instead shows a stop and next button. I have looked into messaging center and I thought it was fixing the problem (here's…
Pinpaho
  • 187
  • 2
  • 5
  • 15
0
votes
0 answers

Xamarin.Forms (iOS) MessagingCenter message from AppDelegate is not delivered

I have next goal: my app receives push notifications (FCM) and I need to handle user manipulations with them in all possible scenarios. When I receive foreground push and handle it in WillPresentNotification - everything works as expected. When I…
Bogdan
  • 107
  • 9
0
votes
1 answer

Multiple alerts with only one MessagingCenter subscription

I'm developing a sample where Messaging Center send status messeges not coupled from device code to my view models. At this point i used a alert message to notice the event before try in View models. For it I used a static view instance in my share…
0
votes
1 answer

Xamarin.Forms Call to message center increases in number each time

I've a problem where I send message once and Subscriber is called once but next time it is called twice and so on... Here's my code. This is message sender public void OnSuccess(Java.Lang.Object result) { UploadTask.TaskSnapshot…
0
votes
1 answer

Unable to display the messages received on UI when using System.net.Sockets connection

I am new to xamarin.forms. I want to build a xamarin forms app that can receive messages using System.net.Sockets. My problem is that I am able to receive messages but unable to make the messages displaying on the UI. I am using dependency service,…
L.Chen
  • 3
  • 2
0
votes
2 answers

How use Xamarin.Forms MessagingCenter without tied it to the UI?

I have a long running task that need to be notified to the user using Toast-like messages. However, the user could move around the app freely. Looking at https://developer.xamarin.com/guides/xamarin-forms/application-fundamentals/messaging-center/,…
mamcx
  • 15,916
  • 26
  • 101
  • 189
1 2
3