public MainViewModel() { _title = "XForms Push Notifications"; _instructionsText = AppConstants.StaticText.MainPage_IntroductionText; _pushNotificationHandler = DependencyService.Get <IPushNotificationHandler> (); TriggerPushNotificationCommand = new Command(TriggerPushNotification); }
public App(IPushNotificationHandler pushNotificationHandler) { // get the details from your azure notification hub string hubName = ""; string connectionString = ""; pushNotificationHandler.InitializeAsync(hubName, connectionString); InitializeComponent(); }
public ProfileDataService() { this._profileRepository = (IProfileRepository)Mvx.get_IoCProvider().Resolve <IProfileRepository>(); this._tokenInfoRepository = (ITokenInfoRepository)Mvx.get_IoCProvider().Resolve <ITokenInfoRepository>(); this._pushSettingsRepository = (IPushSettingsRepository)Mvx.get_IoCProvider().Resolve <IPushSettingsRepository>(); this._secureStore = (ISecureStore)Mvx.get_IoCProvider().Resolve <ISecureStore>(); this._globalMobileApi = (IGlobalMobileApi)Mvx.get_IoCProvider().Resolve <IGlobalMobileApi>(); this._mobileApi = (IMobileApi)Mvx.get_IoCProvider().Resolve <IMobileApi>(); this._pushNotificationHandler = (IPushNotificationHandler)Mvx.get_IoCProvider().Resolve <IPushNotificationHandler>(); this._pushNotificationPlatformSpecificService = (IPushNotificationPlatformSpecificService)Mvx.get_IoCProvider().Resolve <IPushNotificationPlatformSpecificService>(); }
public PushNotificationService() { this._pushNotificationHandler = (IPushNotificationHandler)Mvx.get_IoCProvider().Resolve <IPushNotificationHandler>(); this._parsedMessageDataService = (IParsedMessageDataService)Mvx.get_IoCProvider().Resolve <IParsedMessageDataService>(); this._profileDataService = (IProfileDataService)Mvx.get_IoCProvider().Resolve <IProfileDataService>(); this._evaluationDataService = (IEvaluationDataService)Mvx.get_IoCProvider().Resolve <IEvaluationDataService>(); this._absenceDataService = (IAbsenceDataService)Mvx.get_IoCProvider().Resolve <IAbsenceDataService>(); this._noteDataService = (INoteDataService)Mvx.get_IoCProvider().Resolve <INoteDataService>(); this._uzenetDataService = (IUzenetDataService)Mvx.get_IoCProvider().Resolve <IUzenetDataService>(); this._lessonDataService = (ILessonDataService)Mvx.get_IoCProvider().Resolve <ILessonDataService>(); this._examDataService = (IExamDataService)Mvx.get_IoCProvider().Resolve <IExamDataService>(); }
public static void Initialize(Context context, IPushNotificationHandler pushNotificationHandler, bool resetToken, bool createDefaultNotificationChannel = true, bool autoRegistration = true) { CrossPushNotification.Current.NotificationHandler = pushNotificationHandler; Initialize(context, resetToken, createDefaultNotificationChannel, autoRegistration); }
public static void Initialize(NSNotification notification, IPushNotificationHandler pushNotificationHandler, bool autoRegistration = true, bool enableDelayedResponse = true) { CrossPushNotification.Current.NotificationHandler = pushNotificationHandler; Initialize(notification, autoRegistration, enableDelayedResponse); }
public static void Initialize(Context context, IPushNotificationHandler pushNotificationHandler, bool resetToken) { CrossFirebasePushNotification.Current.NotificationHandler = pushNotificationHandler; Initialize(context, resetToken); }
public static void Initialize(Context context, string notificationHubConnectionString, string notificationHubPath, IPushNotificationHandler pushNotificationHandler, bool resetToken, bool createDefaultNotificationChannel = true, bool autoRegistration = true) { CrossAzurePushNotification.Current.NotificationHandler = pushNotificationHandler; Initialize(context, notificationHubConnectionString, notificationHubPath, resetToken, createDefaultNotificationChannel, autoRegistration); }
public static void Initialize(IPushNotificationHandler pushNotificationHandler) { CrossPushNotification.Current.NotificationHandler = pushNotificationHandler; Initialize(); }
public static void Initialize(string notificationHubConnectionString, string notificationHubPath, NSDictionary options, IPushNotificationHandler pushNotificationHandler, bool autoRegistration = true, bool enableDelayedResponse = true) { CrossAzurePushNotification.Current.NotificationHandler = pushNotificationHandler; Initialize(notificationHubConnectionString, notificationHubPath, options, autoRegistration, enableDelayedResponse); }
public static async Task Initialize(string notificationHubConnectionString, string notificationHubPath, NSDictionary options, IPushNotificationHandler pushNotificationHandler) { CrossAzurePushNotification.Current.NotificationHandler = pushNotificationHandler; await Initialize(notificationHubConnectionString, notificationHubPath, options); }
public InquiryService(IEmailHandler emailHandler, IPushNotificationHandler iPushNotificationHandler) { _emailHandler = emailHandler; _iPushNotificationHandler = iPushNotificationHandler; }
public CrossPushNotificationListener() { _pushNotificationHandler = DependencyService.Get <IPushNotificationHandler> (); _azureNotificationHubService = DependencyService.Get <IAzureNotificationHubService> (); }
public DataNotificationSubscription(Guid subscriptionIdentifier, IPushNotificationHandler notificationHandler) { this._notificationHandler = notificationHandler; this.SubscriptionIdentifier = subscriptionIdentifier; }
public static void Initialize(NSDictionary options, IPushNotificationHandler pushNotificationHandler, bool autoRegistration = true) { CrossFirebaseEssentials.Notifications.NotificationHandler = pushNotificationHandler; Initialize(options, autoRegistration); }
public static async void Initialize(NSDictionary options, IPushNotificationHandler pushNotificationHandler, bool autoRegistration = true) { CrossFirebasePushNotification.Current.NotificationHandler = pushNotificationHandler; await Initialize(options, autoRegistration); }
public SignalRNotificationReceiver(IPushNotificationReceiverConfiguration config, IPushNotificationHandler notificationHandler) { this._config = config; this._notificationHandler = notificationHandler; }