I had fun learning through your videos sir. Thank you so much!
@girisha8962
3 жыл бұрын
Hi, @Fun Of Heuristic I'm trying to make multiple API calls using IndexDB background sync when the application is offline. The problem is when the Application comes online then all the api calls happen at a time, is there a way where the api's will be called one by one for ex:- when the application is offline I made 3 api calls and after some time when application comes online then all the 3 api's are called at a time randomly but what I need is when the application comes online then only 1st api should get called and other 2 api's should wait till the first call gets over then 2nd api should call and then at last 3rd api should get called because the body for 3rd api is depend on first 2 api. I ask you is there any way to do this using Background syn. Thanks in advance
@sohailhayat8270
2 жыл бұрын
Hello sir @Fun of Heuristic, Please help me. In the background sync video I have gone through step wise but I stuck in one part . Here is the code: backgroundSync() { navigator.serviceWorker.ready .then((swRegistration) => swRegistration.sync.register('post-data')) .catch(console.log); } Here is the error: Property 'sync' does not exist on type 'ServiceWorkerRegistration'.
@FunOfHeuristic
2 жыл бұрын
For now make the type to any
@snehavantamuri6241
Жыл бұрын
.then((swRegistration) => (swRegistration as any).sync.register('post-data'))
@ananthupadrasta4798
2 жыл бұрын
I implemented indexedb and background sync in testing it worked fine in pc chrome but I deployed to the server and tested in my mobile it works only some times I dont know what was the issue, It was only working first time only
@adhishbhoyar5655
4 жыл бұрын
I had a query can you please have a video where u can explain the indexdb ...more details as not for background sync for saving data offline and posting it
@FunOfHeuristic
4 жыл бұрын
Noted 🙂
@pavankumarupadrista8762
2 жыл бұрын
Hi, In my post call the server url is also added to the post url, how to remove this. Please reply
@FunOfHeuristic
2 жыл бұрын
What do you mean by server url, please give an example
@melvinvillanueva2089
3 жыл бұрын
thank you for this tutorial . it helps me a lot
@melvinvillanueva2089
3 жыл бұрын
I have a problem : Uncaught (in promise): TypeError: Cannot read property 'get' of undefined . I'm using the then and catch after I call the get('objStore','key') but looks like it doesn't work. Can you help me ?
@kevalbhatt7724
2 жыл бұрын
Hii! What if the request contains the images and will require to post online will it work same?
@angulardesign7412
2 жыл бұрын
using indexdb can i cache http response and store data in gbs
@jagatbandhu2601
3 жыл бұрын
How to cache post data, can you please help me
@ashishkumarsharma4976
4 жыл бұрын
Hi i am trying the same but when offline my service worker does not wait for the internet to be back and stops by thwoing error 'error TypeError: Failed to fetch' can you please help me
@FunOfHeuristic
4 жыл бұрын
Please use background fetch for the same. I have a video on the same, please check.
@nithya7942
2 жыл бұрын
Thank you for the video. I am using Angular 13, and I am getting error using the "Sync" in the service worker registration. I need to store and retrieve FormData. Can you please help me with some documentation/videos explaining the handling of form data for background sync. Thanks in advance
@theeverleinhour9616
2 ай бұрын
could you specify the error?
@rajashekar3762
3 жыл бұрын
Hi sir, I have a doubt. I am converting the angular application to mobile app by using ionic.. is indexdb still work in mobile when we download it from play store? Thanks in advance
@FunOfHeuristic
3 жыл бұрын
Indexed db is an api provided by the browser, if you are wrapping your apk with the browser instance then it will work else it will not, as much I know
@muhammadishaq38
4 жыл бұрын
Very informative video but I want to ask can we make server call using this background sync concept even when PWA is not running in browser or we have closed this PWA?? Kindly reply and guide in this regard
@muhammadishaq38
4 жыл бұрын
@Fun Of Heuristic
@FunOfHeuristic
4 жыл бұрын
@Zill Saqii yes, when you will raise a event for background sync and at that time if the user will not have the connection, then the event will be triggered when the connection will be back even if the app is closed (as the service worker runs in the background). You can check the background sync video to know how it's works properly.
@muhammadishaq38
4 жыл бұрын
@@FunOfHeuristic Thanks for your reply Sir.It cleared my confusion
@alvinyanson
3 жыл бұрын
Can I continue using indexeddb without the use of service worker of Angular? Thanks.
@FunOfHeuristic
3 жыл бұрын
Yes
@alvinyanson
4 жыл бұрын
Hi. is it possible to update my view in case of network connection is lost? Like I want to get the stored data in indexed db and display it in view? Thanks. Great content as always.
@FunOfHeuristic
4 жыл бұрын
Yes, you can use service worker and cache the data or you can fetch from index db if anything is stored, if you don't know about service worker you can check the playlist for PWA.
@muhammadishaq38
4 жыл бұрын
@@FunOfHeuristic hi Sir it was Very informative video but I want to ask can we make server call using this background sync concept even when PWA is not running in browser or we have closed this PWA?? Kindly reply and guide in this regard I am waiting
@FunOfHeuristic
4 жыл бұрын
@@muhammadishaq38 yes, when you will raise a event for background sync and at that time if the user will not have the connection, then the event will be triggered when the connection will be back even if the app is closed (as the service worker runs in the background). You can check the background sync video to know how it's works properly.
@muhammadishaq38
4 жыл бұрын
@@FunOfHeuristic Thanks for your reply and Info.
@muhammadishaq38
4 жыл бұрын
@@FunOfHeuristic Good wishes from Pakistan
@gahyunlee4324
3 жыл бұрын
Thank you!!!
@ergyan300
4 жыл бұрын
video title is misleading. you are using IDB plugin ? not the IndexedDb Api
@markjaysongonzaga1131
4 жыл бұрын
Hi,, this is informative.. could you also make a video for angular and kafka?
@FunOfHeuristic
4 жыл бұрын
I will 😊.
@bhumit070
3 жыл бұрын
Bro I have a found a library called Localbase which is very easy to use rather than idb
@FunOfHeuristic
3 жыл бұрын
I will try that one, thanks for letting us know 🙂
@tamilarasan3137
2 жыл бұрын
Nice video. May i know indexed db maximum size?
@FunOfHeuristic
2 жыл бұрын
It's depends on browser and shared poll of memory, but it's not advised to store large size file because it will fillup users data
Пікірлер: 45