I registered a local notification which will occur every day .But in my application we have a setting called out of office where the user can select his out of office period for a period .(example: From Nov 4 to Nov 10).In between these days i should not get the reminder.Is there any way to do this?
Related
I am using document db with my console application. I am able to access document db with my project running without any issue. But when I am running my console application with docker locally on windows as windows container its not able to access document db.
I am getting following error :
The authorization token is not valid at the current time. Please create
another token and retry (token start time: Mon, 12 Mar 2018 20:54:57 GMT,
token expiry time: Mon, 12 Mar 2018 21:09:57 GMT,
current server time: Mon, 12 Mar 2018 08:24:47 GMT).
ActivityId: a3e015e6-a4bb-47dc-bf24-c7ceacad317c,
Microsoft.Azure.Documents.Common/1.21.0.0, Windows/10.0.16299 documentdb-
netcore-sdk/1.8.1
It seems issue with time sync problem.
Please let me know if you need more details.
I faced the similar issue, and here is the reply from Microsoft
Cosmosdb authorization token is generated for a time period between Now – 1 minute to Now + 15 minutes. The -1 was to account for clock drift between client machines and servers (which are synchronized).
The fact that you’re seeing this error clearly shows that we should have allowed for a longer time window to account for real world clock drifts, and we will increase this to -5 minutes in an upcoming service release.
Meanwhile, a workaround that might help you is to adjust your machines time back by 2 minutes.
Adjusting my machine time back by 2 minutes fixed the problem and allowed me to access my Costmosdb account. Hopefully the permanent fix will be deployed soon.
Related Issue
Using TFS 2017 Update 2, we notice that we sometimes get some email notification double, with a lot of time (30 minutes) between them.
We are not using distributions lists, users are added to TFS Teams directly.
When checking the View link in the bottom, its shows the same ID for all duplicate emails, so its the same alert triggering it.
A concrete example
Build completed at 11:18 AM. We received an identical notification at 11:37, 11:53 and 12:09.
First issue is already that there is 20 minutes between the completion of the build and the sent of the first message.
What part of TFS should i troubleshoot here, we have noticed before that email alerts are received later then expected.
So we have 2 issues, which might be related
1. Emails arrive up to 30 minutes later than expected
2. Identical Emails sometimes are received 2/3 times.
Update, issue came back.
Technical Details:
Build Ran for 15.3 minutes (Default), completed at Fri 12/01/2017 01:48 PM
1st email header:
Received: from TFSAPPSERVER (ip) by smtphost.domain.com
(ip address) with Microsoft SMTP Server id 14.3.319.2; Fri, 1 Dec 2017
07:50:34 -0600 ( 01:50 PM tranlated to same time above)
2nd email header:
Received: from TFSAPPSERVER (ip) by smtphost.domain.com
(ip address) with Microsoft SMTP Server id 14.3.319.2; Fri, 1 Dec 2017
08:26:37 -0600 ( 02:26 PM tranlated to same time above)
In this thread there is a solution from Microsoft:
The root of our issue was that the SMTP server was not responding to TFS to indicate that the mail was sent within the timeout period. Thus the fix in our case was simply to increase the timeout that TFS waits before re-sending emails.
To do this, we ran the following in the TFS Configuration database to change the timeout from 10 seconds (the default) to 90 seconds:
exec prc_SetRegistryValue 1, '#\Service\Integration\Settings\SendTimeout\', 90000
I am creating my first app that lets the user set alerts for themselves and then the app would send the user a local notification on the set time. The thing that I'm having trouble with now is being able to fire the local notification on specific days of the week (for example every Mondays and Tuesdays only). All the tutorials/questions that I have come across so far (like this one) have only been about scheduling the notification everyday/everyweek. The desired result that I'm trying to achieve is sort of like the iPhone's built in alarm system, where you can set an alarm to fire only on certain days of the week.
If I can't just set the notification.repeatInterval field, is there a way I can do what I'm trying to do? Could I possibly execute a little code at midnight that schedules the correct notifications for that day? If so, how could I do that?
Thanks in advance!
The thing that I'm having trouble with now is being able to fire the local notification on specific days of the week
In iOS 10, a UNCalendarNotificationTrigger is formed using DateComponents. This means you can specify as much or as little of the date-time in question as you wish. Thus, if you specify a specific weekday and a time (hour and minutes), and nothing else, you'll repeat at that time on that day of the week.
If you also need to repeat on a different day of the week, just make another notification.
On their documentation they specify that "Users can keep a 30-day message history". I assume this means that after 30 days the messages are deleted,is there anyway of extending this or disabling this feature?
We should change the word history, we store the message for delivery for 30 days. There is not really an inbox with sinch, its a delivery process so every message will be stored for 30 days to be delivered to all the users devices.
We have developed an iOS application which allows users to set some alarms based on the time given. These set alarms are displayed in my "Alarm scheduler" screen of my application. The local notification will trigger this alarm when set time is reached.
Now if user changes his timezone say from EDT to PDT, then the "Alarm scheduler" screen is showing the alarm time properly, but my local notification is not getting triggered.
For example suppose its 8:55 AM EDT and user has set the alarm to trigger at 9:00 AM EDT. Now my "Alarm scheduler" screen will show the alarm time as "9:00 AM", now if user changes the timezone to PDT, then the "Alarm scheduler" page will display the alarm time as "6:00 AM" which is correct and users phone will show the time as "5:55 AM". However after 5 mins when "6:00 AM PDT" is reached the local notification is not getting triggered.
Can some one advice how to achieve this?
Did you sent any timezone when scheduling local notification?
When you sent time zone to notification all hard work is done for you by OS.
This might help you..
On changing system's timezone,
UIApplicationDelegate's --> applicationSignificantTimeChange:
method gets called. You can manage your stuff there.