public MainPageViewModel(INotifoMobilePush notifoService, IDeviceService deviceService) { this.notifoService = notifoService; this.deviceService = deviceService; RefreshCommand = new DelegateCommand(RefreshExecute); }
public void ConfigureService(INotifoMobilePush notifo) { notifo .SetBaseUrl(Constants.ApiUrl) .SetApiKey(Constants.UserApiKey) .UseFirebasePluginEventsProvider() .Register(); notifo.OnNotificationOpened += Current_OnNotificationOpened; }
/// <summary> /// Use the firebase plugin as the push events provider. /// </summary> /// <param name="notifoMobilePush"> /// The <see cref="INotifoMobilePush"/> instance. /// </param> /// <returns>The current instance.</returns> public static INotifoMobilePush UseFirebasePluginEventsProvider(this INotifoMobilePush notifoMobilePush) => notifoMobilePush.SetPushEventsProvider(CurrentPluginEventsProvider.Value);