messagingcenter

Having trouble using MessagingCenter to send a message from Android MainActivity to view model class not in Android project

生来就可爱ヽ(ⅴ<●) 提交于 2021-02-11 17:00:19
问题 I attempted to follow the instructions found here to add a MessagingCenter subscribe action on a notification tap that would open a specific view. Somewhere my Send / Subscribe aren't talking to each other and I just can't see where. The details of the messaging center are still new to me so I'm sure I just used the wrong class or sender somewhere. The code below has since been modified from what was shown to me in the link. The idea is still roughly the same though. Here's the

Having trouble using MessagingCenter to send a message from Android MainActivity to view model class not in Android project

半腔热情 提交于 2021-02-11 16:58:46
问题 I attempted to follow the instructions found here to add a MessagingCenter subscribe action on a notification tap that would open a specific view. Somewhere my Send / Subscribe aren't talking to each other and I just can't see where. The details of the messaging center are still new to me so I'm sure I just used the wrong class or sender somewhere. The code below has since been modified from what was shown to me in the link. The idea is still roughly the same though. Here's the

Send string from Android project to PCL with MessagingCenter

泄露秘密 提交于 2020-03-23 15:32:10
问题 This is my first post on this forum so any tips on how to make the question more understandable/readable and so on is appreciated. What am I doing? I am making my first app using Xamarin Forms, and I have two projects, PCL (Portable Class Library) and Android. My Android project receives incoming SMS from a specific number and saves it to a string. What I am trying to achieve is that by using MessagingCenter, send the string from my Android project to my PCL. My problem: I have seen a lot of