SMS Subscription is not working after couple of hours
we are using the windows service to create the subscription and this windows service will be running always in the server, after couple of hours or more than those hours the subscription is not working and we have to start and stop the windows service to start the sending the SMS again.
do we need to do this always? do we have any mechanism to continuously keep running the service and sending the SMS all times.
RingCentral access tokens and refresh tokens have expiration times associated with them. By default, access tokens expire in 1 hour and refresh tokens expire in 1 week. This means after 1 hour, your app will need to refresh the access token using the refresh token. If your app is not performing token refresh, it may stop being authorized after 1 hour.
Official RingCentral SDKs will perform auto-refresh if your app continues to make API calls. The new C# Client SDK will also auto renew as long as your service is running.
Are you using a SDK and, if so, which one? If not, what language are you using? Our SDKs are listed here:
Apologies for the late reply on this thread. We are using c# SDK for subscribing for incoming sms event . The subscription works as long as the incoming smses are being received . If there is no sms received for some time let's say an hour and later a new sms is received there is no notification coming. Once we restart the service it starts working again. Can you please help as we were assuming that in sdk we don't need to refresh.