I have some data to insert in database when user login mobile app. As well as I have some other services calls too, which makes my app login worst. So here I want to know that how can I login immediately & continue execution of other data services in background.
However I am making async call which is doesn't seem to work. The service calls I am making is it running in background? or I can make it more batter
private async Task InsertPushKeys()
{
foreach (var item in SISConst.Mychildren)
{
pushInfo.OrganizationId = Convert.ToInt64(item.OrganizationID);
pushInfo.OsType = "Android";
pushInfo.ServerkeyPush = SISConst.LmgKey;
var ignore = await logDAL.InsertPushInfo(pushInfo);
}
}
Below line executing the service.
var ignore = await logDAL.InsertPushInfo(pushInfo);
from Continue execution of services in background while using app Xamarin Android
No comments:
Post a Comment