I'm using local notifications for both Android and iOS, i wanted to bind data that i get from bluetooth to notifications, couldn't find any informations about that online ...
I have my viewmodel in both my AppDelegate and MainActivity
In AppDelegate and MainActivity =>
public static AppDelegate Instance;
public MainViewModel ViewModel { get; set; }
public static MainActivity Instance;
public MainViewModel ViewModel { get; set; }
In my viewmodel =>
#if __ANDROID__
MainActivity.Instance.ViewModel = this;
#endif
#if __IOS__
AppDelegate.Instance.ViewModel = this;
#endif
Then i don't really know ... I usually just do the classic "{Binding xxx}" in XAML, no idea how to do that for the notifications.
Any tips ?